Compare commits

...

8 commits

17 changed files with 33 additions and 17 deletions

View file

@ -16,6 +16,6 @@ begin
end
function pacinst -d "Install pacman-package non-interactively"
sudo runPacman --noconfirm $argv
runPacman --noconfirm $argv
end
end

View file

@ -3,7 +3,7 @@ begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
function installSW -V dir
yayinst \
aliae-bin

View file

@ -4,7 +4,7 @@ begin
source "$dir/../../Scripts/software.fish"
source "$dir/../../../Common/Software/brave/main.fish"
function installSW
function installSW -V dir
yayinst brave-bin (
# brave-beta-bin
# brave-nightly-bin

View file

@ -4,7 +4,7 @@ begin
source "$dir/../../Scripts/software.fish"
source "$dir/../../../Common/Software/git/main.fish"
function installSW
function installSW -V dir
yayinst \
git \
git-lfs \

View file

@ -3,7 +3,7 @@ begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
function installSW -V dir
yayinst grub-theme-minegrub-git
fish "$dir/../../../Common/Software/minegrub-theme/main.fish" configure
end

View file

@ -5,7 +5,7 @@ begin
function installSW -V dir
yayinst nodejs-n
sudo fish "$dir/../../../Common/Software/n/main.fish" configure
sudo --preserve-env --set-home fish "$dir/../../../Common/Software/n/main.fish" configure
end
runInstaller $argv

View file

@ -7,10 +7,12 @@ begin
yayinst \
openssh \
libfido2
source (status filename) configure
end
function configureSW
systemctl --global enable --now ssh-agent
sudo systemctl --global enable ssh-agent
and begin
printf %s\n \

View file

@ -3,7 +3,7 @@ begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
function installSW -V dir
yayinst pyenv
fish "$dir/../../../Common/Software/pyenv/main.fish" configure
end

View file

@ -4,7 +4,7 @@ begin
source "$dir/../../Scripts/software.fish"
source "$dir/../../../Common/Software/vim/main.fish"
function installSW
function installSW -V dir
yayinst (
# Necessary for accessing clipboard in terminal: https://wiki.archlinux.org/title/Vim
) gvim \

View file

@ -3,7 +3,7 @@ begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
function installSW -V dir
yayinst \
zoxide

View file

@ -6,6 +6,7 @@ source "$dir/../Scripts/hooks.fish"
if [ (id -u) -eq 0 ]
set -l name (getConfig valhalla.setupUser.name)
set -l sudoConfig "/etc/sudoers.d/PortValhalla"
rm ~/.bash_profile
runHook createUser || \
begin

View file

@ -14,7 +14,7 @@ then
UNPACKED_EXTENSION="${UNPACKED_EXTENSION}" \
EXTENSION_DIR="${EXTENSION_DIR}" \
EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}" \
bash "$BASH_SOURCE" "$USER";
bash --login "$BASH_SOURCE" "$USER";
else
keyFile="$UNPACKED_EXTENSION.pem";
extensionFile="$UNPACKED_EXTENSION.crx";

View file

@ -11,7 +11,7 @@ begin
source "$dir/../bash/profile.fish"
source "$dir/../fish/profile.fish"
set -l file /etc/aliae/aliae.yml
echo "export ALIAE_CONFIG=$(string escape "$file")" | sudo tee /etc/profile.d/aliae.sh
echo "export ALIAE_CONFIG=$(string escape "$file")" | sudo tee /etc/profile.d/aliae.sh > /dev/null
sudo install -Dm644 "$dir/aliae.yml" "$file"
begin

View file

@ -17,12 +17,22 @@ begin
if type -q "$bins[$i]"
set bin "$bins[$i]"
set extensionRoot "$extensionRoots[$i]"
break
end
end
BROWSER_BIN="$bin" \
EXTENSION_POLICY_DIR="$braveExtensions" \
EXTENSION_POLICY_DIR="$extensionRoot" \
bash "$dir/../Chromium/ytmdl.sh"
for i in (seq (count $bins))
if [ "$extensionRoots[$i]" != "$extensionRoot" ]
if [ -d "$extensionRoots[$i]" ]
sudo rm -rf "$extensionRoots[$i]"
sudo ln -s "$extensionRoot" "$extensionRoots[$i]"
end
end
end
end
runInstaller $argv

View file

@ -8,7 +8,7 @@ begin
configureSW
end
function configureSW
function configureSW -V dir
source "$dir/../bash/profile.fish"
source "$dir/../fish/profile.fish"
@ -20,7 +20,7 @@ begin
end | installBashProfile "pyenv" > /dev/null
if type -q fish
addFishProfile "pyenv" "pyenv" "pyenv init - | source"
installFishProfile "pyenv" "pyenv" "pyenv init - | source"
end
end

View file

@ -35,7 +35,10 @@ begin
sudo -Eu "$name" dbus-launch --exit-with-session startplasma-wayland &> /dev/null
rm "$entryPoint"
rm ~"$name"/.config/plasma-welcomerc
else if [ -n "$name" ] && [ "$name" != "$USER" ]
sudo -Eu "$name" CONFIG_MODULE="$CONFIG_MODULE" fish "$(status filename)" userConfig
else
systemctl --user enable rclone.service
echo "Please complete the setup of your rclone configurations!"
for config in (echo "$configs" | jq '.[]' --raw-output0 | string split0)

View file

@ -4,14 +4,14 @@ begin
source "$dir/../../Scripts/software.fish"
source "$dir/../../../Common/Software/aliae/main.fish"
function configureSW
function userConfig -a name
set -l bins codium codium-insiders code code-insiders
set -l extensions zokugun.{sync-settings,vsix-manager}
for bin in $bins
if type -q "$bin"
for extension in $extensions
"$bin" --install-extension "$extension"
sudo -u "$name" "$bin" --install-extension "$extension"
end
end
end