This repository has been archived by the owner on Dec 25, 2024. It is now read-only.
generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nu-script): move everything to nushell
- Loading branch information
1 parent
eb73e1a
commit 203c1a8
Showing
15 changed files
with
84 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env -S nu | ||
|
||
use lib/std.nu [ARCH] | ||
|
||
const BREW_TARGET = "/usr/libexec/brew-install" | ||
|
||
http get "https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh" | save -f "$BREW_TARGET" | ||
run-external chmod '+x' "$BREW_TARGET" | ||
|
||
let GUM_LATEST = (http get https://api.github.com/repos/charmbracelet/gum/releases/latest | get assets | where {|e| $e.name | str ends-with $"($ARCH).rpm" } | get browser_download_url) | ||
|
||
http get $GUM_LATEST | save -f /tmp/gum.rpm | ||
run-external rpm-ostree install /tmp/gum.rpm | ||
rm /tmp/gum.rpm |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env -S nu | ||
|
||
use lib/std.nu [FEDORA_MAJOR_VERSION] | ||
|
||
const REPO_PATH = "/etc/yum.repos.d/_copr_kylegospo-gnome-vrr.repo" | ||
|
||
http get $"https://copr.fedorainfracloud.org/coprs/kylegospo/gnome-vrr/repo/fedora-($FEDORA_MAJOR_VERSION)/kylegospo-gnome-vrr-fedora-($FEDORA_MAJOR_VERSION).repo" | save -f $REPO_PATH | ||
|
||
run-external rpm-ostree override replace '--experimental' '--from' repo=copr:copr.fedorainfracloud.org:kylegospo:gnome-vrr mutter mutter-common gnome-control-center gnome-control-center-filesystem | ||
|
||
rm -f $REPO_PATH |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout | ||
export const ARCH = "x86_64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
use lib/std.nu [FEDORA_MAJOR_VERSION, ARCH] | ||
|
||
const COPR_FILE = "/etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo" | ||
|
||
http get $"https://copr.fedorainfracloud.org/coprs/gloriouseggroll/nvidia-explicit-sync/repo/fedora-($FEDORA_MAJOR_VERSION)/gloriouseggroll-nvidia-explicit-sync-fedora-($FEDORA_MAJOR_VERSION).repo?arch=($ARCH)" | save -f $COPR_FILE | ||
|
||
rpm-ostree override replace \ | ||
--experimental \ | ||
--from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ | ||
xorg-x11-server-Xwayland | ||
|
||
rpm-ostree override replace \ | ||
--experimental \ | ||
--from repo=copr:copr.fedorainfracloud.org:gloriouseggroll:nvidia-explicit-sync \ | ||
egl-wayland | ||
|
||
rm $COPR_FILE |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env -S nu | ||
|
||
use lib/std.nu [FEDORA_MAJOR_VERSION, ARCH] | ||
|
||
const COPR_FILE = "/etc/yum.repos.d/_copr_kylegospo-prompt.repo" | ||
|
||
http get "https://copr.fedorainfracloud.org/coprs/kylegospo/prompt/repo/fedora-($FEDORA_MAJOR_VERSION)/kylegospo-prompt-fedora-($FEDORA_MAJOR_VERSION).repo?arch=($ARCH)" | save -f $COPR_FILE | ||
|
||
rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:kylegospo:prompt \ | ||
vte291 \ | ||
vte-profile \ | ||
libadwaita | ||
|
||
rpm-ostree install ptyxis | ||
|
||
rm -f $COPR_FILE |
This file was deleted.
Oops, something went wrong.
0
config/scripts/rt-kernel.sh → config/scripts/rt-kernel.nu
100644 → 100755
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
config/scripts/tuned.sh → config/scripts/tuned.nu
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env -S nu | ||
|
||
let ZLUDA_LATEST = (http get https://api.github.com/repos/vosen/ZLUDA/releases/latest | get assets | where {|e| $e.name | str ends-with $"-linux.tar.gz" } | get browser_download_url).0 | ||
|
||
http get $ZLUDA_LATEST | save -f /tmp/zluda.tar.gz | ||
|
||
mkdir -p /tmp/zluda | ||
tar --strip-components 1 -xvzf /tmp/zluda.tar.gz -C /tmp/zluda | ||
mv /tmp/zluda /usr/lib64/zluda | ||
|
||
rm -f /tmp/zluda.tar.gz |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env -S nu | ||
def "main" [ | ||
yaml_file: string | ||
] { | ||
($yaml_file | from yaml).scripts | each { | ||
| script | { run-external $script | complete } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!/usr/bin/env -S nu | ||
#!/usr/bin/env bash | ||
|
||
def "main" [ | ||
yaml_file: string | ||
] { | ||
chmod +x "/tmp/config/scripts/*" | ||
($yaml_file | from yaml).scripts | each { | ||
| script | { run-external $script } | ||
} | ||
} | ||
NU_LOG_LEVEL=DEBUG nu --stdin -c ./nushell-launcher.nu "$@" |