Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix: point scripts to the proper path!
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 7, 2024
1 parent 0743a9b commit 6dc5698
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/common/gnome/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type: script-nu
scripts:
- gnome-vrr.sh
- gnome-vrr.nu
2 changes: 1 addition & 1 deletion config/common/shared/amd/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type: script-nu
scripts:
- zluda.sh
- zluda.nu
4 changes: 4 additions & 0 deletions config/common/shared/bling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: bling
install:
- ublue-update
- dconf-update-service
2 changes: 1 addition & 1 deletion config/common/shared/nvidia/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type: script-nu
scripts:
- nvidia-explicit-sync.sh
- nvidia-explicit-sync.nu
1 change: 1 addition & 0 deletions config/common/shared/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ install:
- qemu-audio-spice
- ffmpeg
- fish
- switcheroo-control
8 changes: 4 additions & 4 deletions config/common/shared/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type: script-nu
scripts:
- ptyxis.sh
- extra-packages.sh
- tuned.sh
#- rt-kernel.sh
- ptyxis.nu
- extra-packages.nu
- tuned.nu
#- rt-kernel.nu
4 changes: 2 additions & 2 deletions modules/script-nu/nushell-launcher.nu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
def "main" [
yaml_file: string
] {
($yaml_file | from yaml).scripts | par-each {
| script | do { run-external $"/tmp/config/scripts/($script)" | complete }
for $script in ($yaml_file | from yaml).scripts {
$"/tmp/config/scripts/($script)"
}
}
2 changes: 1 addition & 1 deletion modules/script-nu/script-nu.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

NU_LOG_LEVEL=DEBUG nu --stdin /tmp/modules/script-nu/nushell-launcher.nu $@
/usr/bin/env -S NU_LOG_LEVEL=DEBUG nu --stdin /tmp/modules/script-nu/nushell-launcher.nu $@

0 comments on commit 6dc5698

Please sign in to comment.