Restructure the script directory

This commit is contained in:
Manuel Thalmann 2024-11-01 13:12:16 +01:00
parent 772b7adc0b
commit c4250cd27d
150 changed files with 248 additions and 248 deletions

View file

@ -1,6 +1,6 @@
#!/bin/env fish #!/bin/env fish
begin begin
source "$(status dirname)/../../scripts/config.fish" source "$(status dirname)/../../scripts/lib/config.fish"
set -l projectName archiso-valhalla set -l projectName archiso-valhalla
set -l overlayDir (mktemp -d) set -l overlayDir (mktemp -d)
set -l upperDir (mktemp -d) set -l upperDir (mktemp -d)
@ -14,7 +14,7 @@ begin
set -l nixDir "$profileDir/$root/nix/var/nix/profiles/per-user/root/channels/nixpkgs" set -l nixDir "$profileDir/$root/nix/var/nix/profiles/per-user/root/channels/nixpkgs"
mkdir -p "$rootHome" mkdir -p "$rootHome"
and fish "$(status dirname)/../../scripts/copy-repo.fish" "$projectDir" and fish "$(status dirname)/../../scripts/lib/copy-repo.fish" "$projectDir"
and begin and begin
if [ ! -d "$nixCache" ] if [ ! -d "$nixCache" ]

View file

@ -1,14 +1,14 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW -V dir function installSW -V dir
yayinst secureboot-grub yayinst secureboot-grub
end end
function configureSW -V dir function configureSW -V dir
source "$dir/../../../Common/Scripts/settings.fish" source "$dir/../../../lib/settings.fish"
set -l label (getOSConfig boot.label) set -l label (getOSConfig boot.label)
set -l efiDir (getOSConfig boot.efiMountPoint) set -l efiDir (getOSConfig boot.efiMountPoint)
set -l bootNums (efibootmgr | sed "/$label/{ s/^.*Boot\([[:digit:]]\+\)\*.*\$/\1/; p; }; d") set -l bootNums (efibootmgr | sed "/$label/{ s/^.*Boot\([[:digit:]]\+\)\*.*\$/\1/; p; }; d")

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW -V dir function installSW -V dir
set -l repo linux-surface set -l repo linux-surface

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW -V dir function installSW -V dir
yayinst \ yayinst \

View file

@ -3,21 +3,21 @@ begin
set -l dir (status dirname) set -l dir (status dirname)
function installValhallaDeps -V dir function installValhallaDeps -V dir
source "$dir/../Scripts/software.fish" source "$dir/../lib/software.fish"
and pacinst fish git jq nix sudo tmux and pacinst fish git jq nix sudo tmux
end end
function getDeploymentScript -V dir function getDeploymentScript -V dir
echo "$dir/../Scripts/deploy.fish" echo "$dir/../lib/deploy.fish"
end end
function initialize -V dir function initialize -V dir
source "$dir/../../Common/Scripts/wait-network.fish" source "$dir/../../lib/wait-network.fish"
waitNetwork waitNetwork
or exit or exit
sudo systemctl enable --now nix-daemon sudo systemctl enable --now nix-daemon
and source "$dir/../Scripts/software.fish" and source "$dir/../lib/software.fish"
and source "$dir/../Software/base-devel/main.fish" and source "$dir/../Software/base-devel/main.fish"
and source "$dir/../Software/pacman/main.fish" and source "$dir/../Software/pacman/main.fish"
and source "$dir/../Software/yay/main.fish" and source "$dir/../Software/yay/main.fish"

View file

@ -2,7 +2,7 @@
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Common/OS/setup.fish" source "$dir/../../Common/OS/setup.fish"
source "$dir/../../Common/Scripts/settings.fish" source "$dir/../../lib/settings.fish"
function runChroot -S function runChroot -S
arch-chroot $argv arch-chroot $argv
@ -23,8 +23,8 @@ begin
end end
function setupOS -S -V dir -S function setupOS -S -V dir -S
source "$dir/../../Common/Scripts/hooks.fish" source "$dir/../../lib/hooks.fish"
source "$dir/../../Common/Scripts/wait-network.fish" source "$dir/../../lib/wait-network.fish"
waitNetwork waitNetwork
and begin and begin

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/aliae/main.fish" inherit "$dir/../../../Common/Software/aliae/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
pacinst base-devel pacinst base-devel

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/brave/main.fish" inherit "$dir/../../../Common/Software/brave/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/docker/main.fish" inherit "$dir/../../../Common/Software/docker/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/firefox/main.fish" inherit "$dir/../../../Common/Software/firefox/main.fish"
function installSW -V dir function installSW -V dir

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/git/main.fish" inherit "$dir/../../../Common/Software/git/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/grub/main.fish" inherit "$dir/../../../Common/Software/grub/main.fish"
function installSW -V dir function installSW -V dir

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst \ yayinst \

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/logo-ls/main.fish" inherit "$dir/../../../Common/Software/logo-ls/main.fish"
function installSW -V dir function installSW -V dir

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst \ yayinst \

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/minegrub-theme/main.fish" inherit "$dir/../../../Common/Software/minegrub-theme/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/nix/main.fish" inherit "$dir/../../../Common/Software/nix/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst nodejs-n yayinst nodejs-n

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/nvidia-dkms/main.fish" inherit "$dir/../../../Common/Software/nvidia-dkms/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/oh-my-posh/main.fish" inherit "$dir/../../../Common/Software/oh-my-posh/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst \ yayinst \

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
configureSW configureSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst \ yayinst \

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst \ yayinst \

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/powershell/main.fish" inherit "$dir/../../../Common/Software/powershell/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/pyenv/main.fish" inherit "$dir/../../../Common/Software/pyenv/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/rclone/main.fish" inherit "$dir/../../../Common/Software/rclone/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
# `git` version # `git` version

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst steam yayinst steam
@ -9,7 +9,7 @@ begin
function configureSW -V dir function configureSW -V dir
. "$dir/../../../Common/Scripts/settings.fish" . "$dir/../../../lib/settings.fish"
if isOSEnabled hidpi if isOSEnabled hidpi
begin begin

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
pacinst sudo pacinst sudo

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/vim/main.fish" inherit "$dir/../../../Common/Software/vim/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/virt-manager/main.fish" inherit "$dir/../../../Common/Software/virt-manager/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function setFlags -a user function setFlags -a user
set -l flags set -l flags

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
yayinst ( yayinst (

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
set -l contextRoot (mktemp -d) set -l contextRoot (mktemp -d)

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
function installSW function installSW
if not type -q yay if not type -q yay

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../lib/software.fish"
inherit "$dir/../../../Common/Software/zoxide/main.fish" inherit "$dir/../../../Common/Software/zoxide/main.fish"
function installSW function installSW

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Common/Scripts/software.fish" source "$dir/../../lib/software.fish"
function runYay -d "Run yay with pre-configured defaults" function runYay -d "Run yay with pre-configured defaults"
if not isatty 0 if not isatty 0

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
. "$dir/../../Software/plasma/input.fish" . "$dir/../../Software/plasma/input.fish"

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
. "$dir/../../Software/plasma/input.fish" . "$dir/../../Software/plasma/input.fish"

View file

@ -1,11 +1,11 @@
#!/bin/env fish #!/bin/env fish
set -l dir (status dirname) set -l dir (status dirname)
set -l cmdline (cat /proc/$fish_pid/cmdline | string split0) set -l cmdline (cat /proc/$fish_pid/cmdline | string split0)
source "$dir/../Scripts/settings.fish" source "$dir/../../lib/settings.fish"
source "$dir/../Scripts/hooks.fish" source "$dir/../../lib/hooks.fish"
if [ (id -u) -eq 0 ] if [ (id -u) -eq 0 ]
source "$dir/../../config.fish" source "$dir/../../lib/config.fish"
set -l sudoConfig "/etc/sudoers.d/PortValhalla" set -l sudoConfig "/etc/sudoers.d/PortValhalla"
set -l channelDir /nix/var/nix/profiles/per-user/root/channels/nixpkgs set -l channelDir /nix/var/nix/profiles/per-user/root/channels/nixpkgs
rm ~/.bash_profile rm ~/.bash_profile
@ -79,7 +79,7 @@ else
runHook initializeUsers || begin runHook initializeUsers || begin
if [ -n "$deployScript" ] if [ -n "$deployScript" ]
source "$dir/../Scripts/settings.fish" source "$dir/../../lib/settings.fish"
for name in (getUsers | jq '.[]' --raw-output0 | string split0) for name in (getUsers | jq '.[]' --raw-output0 | string split0)
echo "Configuring user `$name`..." echo "Configuring user `$name`..."

View file

@ -1,8 +1,8 @@
#!/bin/env fish #!/bin/env fish
function runSetup function runSetup
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../Scripts/settings.fish" source "$dir/../../lib/settings.fish"
source "$dir/../Scripts/hooks.fish" source "$dir/../../lib/hooks.fish"
if [ -z "$CONFIG_NAME" ] if [ -z "$CONFIG_NAME" ]
selectProfile config selectProfile config
@ -60,7 +60,7 @@ function runSetup
and runHook --force installValhallaDeps 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.' and runHook --force installValhallaDeps 'Please set up a function `installValhallaDeps` for installing `fish`, `git`, `jq`, `nix`, `sudo` and `tmux`.'
and echo "Cloning project..." and echo "Cloning project..."
and source "$dir/../../copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT" and source "$dir/../../lib/copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
runChroot "$mountDir" git config --system --add safe.directory "$PROJECT_CLONE_ROOT" runChroot "$mountDir" git config --system --add safe.directory "$PROJECT_CLONE_ROOT"
and runHook setupOS and runHook setupOS

View file

@ -1,6 +1,6 @@
#!/bin/env fish #!/bin/env fish
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../Scripts/settings.fish" source "$dir/../../lib/settings.fish"
set -l users (getUsers) set -l users (getUsers)
echo "Creating users..." echo "Creating users..."

View file

@ -1,6 +1,6 @@
. "$PSScriptRoot/Constants.ps1"; . "$PSScriptRoot/Constants.ps1";
. "$PSScriptRoot/../powershell/Profile.ps1"; . "$PSScriptRoot/../powershell/Profile.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `
-Configurator { -Configurator {

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
source "$dir/../bash/profile.fish" source "$dir/../bash/profile.fish"

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
begin begin

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/profile-base.fish" source "$dir/../../../lib/profile-base.fish"
function getBashStatements function getBashStatements
end end

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
set -l bin set -l bin

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
sudo systemctl enable --now docker sudo systemctl enable --now docker

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
sudo cp "$dir/firefox.sh" /etc/profile.d/ sudo cp "$dir/firefox.sh" /etc/profile.d/

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/profile-base.fish" source "$dir/../../../lib/profile-base.fish"
function installFishProfile -a name title function installFishProfile -a name title
addProfileStatement "$name" "$title" "/bin/env fish" fish /etc/fish/conf.d $argv[3..] addProfileStatement "$name" "$title" "/bin/env fish" fish /etc/fish/conf.d $argv[3..]

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../Scripts/System.ps1"; . "$PSScriptRoot/../../../lib/System.ps1";
. "$PSScriptRoot/../../Types/InstallerAction.ps1"; . "$PSScriptRoot/../../Types/InstallerAction.ps1";
& { & {

View file

@ -2,7 +2,7 @@
begin begin
set -l dir (status dirname) set -l dir (status dirname)
set -l base "$dir/Main.ps1" set -l base "$dir/Main.ps1"
source "$(status dirname)/../../Scripts/software.fish" source "$(status dirname)/../../../lib/software.fish"
function configureSW -S -V base function configureSW -S -V base
pwsh "$base" Configure pwsh "$base" Configure

View file

@ -1,8 +1,8 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/settings.fish" source "$dir/../../../lib/settings.fish"
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW function configureSW
set -l efiDir (getOSConfig boot.efiMountPoint) set -l efiDir (getOSConfig boot.efiMountPoint)

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
source "$dir/../bash/profile.fish" source "$dir/../bash/profile.fish"

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
sudo sed -i \ sudo sed -i \

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir -a scope function configureSW -V dir -a scope
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function installSW function installSW
npm install --global n npm install --global n

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function installSW -V dir function installSW -V dir
sudo install -m 755 "$dir/nuke-usb.sh" /usr/local/bin/nuke-usb sudo install -m 755 "$dir/nuke-usb.sh" /usr/local/bin/nuke-usb

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
# According to: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks # According to: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks

View file

@ -1,6 +1,6 @@
. "$PSScriptRoot/../aliae/Manage.ps1"; . "$PSScriptRoot/../aliae/Manage.ps1";
. "$PSScriptRoot/../powershell/Profile.ps1"; . "$PSScriptRoot/../powershell/Profile.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../Types/InstallerAction.ps1"; . "$PSScriptRoot/../../Types/InstallerAction.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

View file

@ -2,7 +2,7 @@
begin begin
set -l dir (status dirname) set -l dir (status dirname)
set -l base "$dir/Main.ps1" set -l base "$dir/Main.ps1"
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir -V base function configureSW -V dir -V base
source "$dir/../bash/profile.fish" source "$dir/../bash/profile.fish"

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../powershell/Module.ps1"; . "$PSScriptRoot/../powershell/Module.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
$parameters = Get-ModuleInstallerComponents "posh-git"; $parameters = Get-ModuleInstallerComponents "posh-git";
Start-SoftwareInstaller @args @parameters; Start-SoftwareInstaller @args @parameters;

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function installSW -V dir function installSW -V dir
sudo -HE pwsh "$dir/Main.ps1" sudo -HE pwsh "$dir/Main.ps1"

View file

@ -1,4 +1,4 @@
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../Software/powershell/Profile.ps1"; . "$PSScriptRoot/../../Software/powershell/Profile.ps1";
. "$PSScriptRoot/../../Types/InstallerAction.ps1"; . "$PSScriptRoot/../../Types/InstallerAction.ps1";

View file

@ -1,6 +1,6 @@
$null = New-Module { $null = New-Module {
. "$PSScriptRoot/../../Scripts/Scripting.ps1"; . "$PSScriptRoot/../../../lib/Scripting.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
<# <#
.SYNOPSIS .SYNOPSIS

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
sudo -HE pwsh "$dir/Main.ps1" Configure sudo -HE pwsh "$dir/Main.ps1" Configure

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function installSW function installSW
curl https://pyenv.run | bash curl https://pyenv.run | bash

View file

@ -1,14 +1,14 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
sudo cp "$dir/rclone.service" "$dir/rclone.target" "$dir/rclone@.service" /etc/systemd/user sudo cp "$dir/rclone.service" "$dir/rclone.target" "$dir/rclone@.service" /etc/systemd/user
end end
function userConfig -V dir -a name function userConfig -V dir -a name
source "$dir/../../Scripts/settings.fish" source "$dir/../../../lib/settings.fish"
set -l key "programs.rclone.configurations" set -l key "programs.rclone.configurations"
set -l configs (getUserConfig "$name" "$key" --apply "builtins.attrNames" --json) set -l configs (getUserConfig "$name" "$key" --apply "builtins.attrNames" --json)

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../powershell/Module.ps1"; . "$PSScriptRoot/../powershell/Module.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
$parameters = Get-ModuleInstallerComponents "Terminal-Icons"; $parameters = Get-ModuleInstallerComponents "Terminal-Icons";
Start-SoftwareInstaller @args @parameters; Start-SoftwareInstaller @args @parameters;

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function installSW -V dir function installSW -V dir
sudo -HE pwsh "$dir/Main.ps1" sudo -HE pwsh "$dir/Main.ps1"

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW function configureSW
set -l configFile /etc/vimrc set -l configFile /etc/vimrc

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW function configureSW
begin begin

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../../lib/SoftwareManagement.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `
-UserConfigurator { -UserConfigurator {

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function userConfig -V dir function userConfig -V dir
runPSUserConfig "$dir/Main.ps1" $argv runPSUserConfig "$dir/Main.ps1" $argv

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../powershell/Profile.ps1"; . "$PSScriptRoot/../powershell/Profile.ps1";
. "$PSScriptRoot/../../Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `
-Configurator { -Configurator {

View file

@ -1,7 +1,7 @@
#!/bin/env fish #!/bin/env fish
begin begin
set -l dir (status dirname) set -l dir (status dirname)
source "$dir/../../Scripts/software.fish" source "$dir/../../../lib/software.fish"
function configureSW -V dir function configureSW -V dir
source "$dir/../bash/profile.fish" source "$dir/../bash/profile.fish"

View file

@ -1,4 +1,4 @@
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `
-Installer { -Installer {

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1"; . "$PSScriptRoot/../../../lib/System.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `
-Installer { -Installer {

View file

@ -1,4 +1,4 @@
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../../lib/Software.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `
-Installer { -Installer {

View file

@ -1,4 +1,4 @@
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../../lib/Software.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `
-Installer { -Installer {

View file

@ -1,4 +1,4 @@
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../../lib/Software.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `
-Installer { -Installer {

View file

@ -1,4 +1,4 @@
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../../lib/Software.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `
-Installer { -Installer {

View file

@ -1,6 +1,6 @@
& { & {
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
$softwarePath = "$PSScriptRoot/../../Software"; $softwarePath = "$PSScriptRoot/../../Software";
$appScripts = @( $appScripts = @(

View file

@ -1,24 +1,24 @@
#!/bin/pwsh #!/bin/pwsh
using namespace System.Security.Principal; using namespace System.Security.Principal;
. "$PSScriptRoot/../Scripts/Security.ps1"; . "$PSScriptRoot/../lib/Security.ps1";
. "$PSScriptRoot/../Scripts/WSL.ps1"; . "$PSScriptRoot/../lib/WSL.ps1";
$null = New-Module { $null = New-Module {
. "$PSScriptRoot/../Scripts/Constants.ps1"; . "$PSScriptRoot/../lib/Constants.ps1";
. "$PSScriptRoot/../Scripts/Deployment.ps1"; . "$PSScriptRoot/../lib/Deployment.ps1";
. "$PSScriptRoot/../Scripts/PowerManagement.ps1"; . "$PSScriptRoot/../lib/PowerManagement.ps1";
. "$PSScriptRoot/../Scripts/Registry.ps1"; . "$PSScriptRoot/../lib/Registry.ps1";
. "$PSScriptRoot/../Scripts/Security.ps1"; . "$PSScriptRoot/../lib/Security.ps1";
. "$PSScriptRoot/../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../Scripts/System.ps1"; . "$PSScriptRoot/../lib/System.ps1";
. "$PSScriptRoot/../Scripts/Update.ps1"; . "$PSScriptRoot/../lib/Update.ps1";
. "$PSScriptRoot/../Scripts/Users.ps1"; . "$PSScriptRoot/../lib/Users.ps1";
. "$PSScriptRoot/../Types/WindowsInstallerAction.ps1"; . "$PSScriptRoot/../Types/WindowsInstallerAction.ps1";
. "$PSScriptRoot/../../Common/Scripts/Config.ps1"; . "$PSScriptRoot/../../lib/Config.ps1";
. "$PSScriptRoot/../../Common/Scripts/Operations.ps1"; . "$PSScriptRoot/../../lib/Operations.ps1";
. "$PSScriptRoot/../../Common/Scripts/Scripting.ps1"; . "$PSScriptRoot/../../lib/Scripting.ps1";
. "$PSScriptRoot/../../Common/Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../Common/Types/InstallerAction.ps1";
<# <#

View file

@ -1,10 +1,10 @@
#!/bin/pwsh #!/bin/pwsh
. "$PSScriptRoot/../../Common/Scripts/Scripting.ps1"; . "$PSScriptRoot/../../lib/Scripting.ps1";
function Start-Setup { function Start-Setup {
param($ConfigurationName) param($ConfigurationName)
. "$PSScriptRoot/../../Common/Scripts/Config.ps1"; . "$PSScriptRoot/../../lib/Config.ps1";
. "$PSScriptRoot/../../Common/Scripts/Scripting.ps1"; . "$PSScriptRoot/../../lib/Scripting.ps1";
$Global:InformationPreference = "Continue"; $Global:InformationPreference = "Continue";
$Global:ErrorActionPreference = "Inquire"; $Global:ErrorActionPreference = "Inquire";
$env:CONFIG_NAME ??= $ConfigurationName; $env:CONFIG_NAME ??= $ConfigurationName;

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

View file

@ -1,6 +1,6 @@
using namespace Microsoft.Win32; using namespace Microsoft.Win32;
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Software/powershell/Profile.ps1"; . "$PSScriptRoot/../../../Common/Software/powershell/Profile.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `

View file

@ -1,6 +1,6 @@
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../Scripts/System.ps1"; . "$PSScriptRoot/../../lib/System.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
Start-SoftwareInstaller -Force @args ` Start-SoftwareInstaller -Force @args `

View file

@ -1,6 +1,6 @@
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1"; . "$PSScriptRoot/../../lib/AppAssociations.ps1";
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `
-Installer { -Installer {

View file

@ -1,6 +1,6 @@
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Config.ps1"; . "$PSScriptRoot/../../../lib/Config.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

View file

@ -1,7 +1,7 @@
& { & {
. "$PSScriptRoot/../../Scripts/Restoration.ps1"; . "$PSScriptRoot/../../lib/Restoration.ps1";
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
$configPath = "$env:LocalAppData/LGHUB"; $configPath = "$env:LocalAppData/LGHUB";
<# <#

View file

@ -1,8 +1,8 @@
& { & {
. "$PSScriptRoot/../../Scripts/Restoration.ps1"; . "$PSScriptRoot/../../lib/Restoration.ps1";
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Scripts/System.ps1"; . "$PSScriptRoot/../../../lib/System.ps1";
$path = "$HOME/Documents/ManiaPlanet"; $path = "$HOME/Documents/ManiaPlanet";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `
-Installer { -Installer {

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../Scripts/PowerManagement.ps1"; . "$PSScriptRoot/../../lib/PowerManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
& { & {
<# <#

View file

@ -1,8 +1,8 @@
using namespace System.Security.AccessControl; using namespace System.Security.AccessControl;
using namespace System.Security.Principal; using namespace System.Security.Principal;
. "$PSScriptRoot/../../Scripts/Security.ps1"; . "$PSScriptRoot/../../lib/Security.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

View file

@ -1,5 +1,5 @@
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1"; . "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1"; . "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
Start-SoftwareInstaller @args ` Start-SoftwareInstaller @args `

Some files were not shown because too many files have changed in this diff Show more