From 6144f91bccf8643880bed62867e2ec06a3113d2e Mon Sep 17 00:00:00 2001 From: RJ Trujillo Date: Mon, 17 Jul 2023 13:33:47 -0600 Subject: [PATCH] feat(nix): Use escalated privledges to install Introduces the alias 'guisu' which will handle requests for escalated privledges in yafti going into the future. An alias is used here so that we can use whatever implementation a DE may provide --- system_files/deck/usr/share/ublue-os/firstboot/yafti.yml | 2 +- system_files/desktop/etc/profile.d/guisu.sh | 2 ++ system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 system_files/desktop/etc/profile.d/guisu.sh diff --git a/system_files/deck/usr/share/ublue-os/firstboot/yafti.yml b/system_files/deck/usr/share/ublue-os/firstboot/yafti.yml index 03d58be7..5e165c5c 100644 --- a/system_files/deck/usr/share/ublue-os/firstboot/yafti.yml +++ b/system_files/deck/usr/share/ublue-os/firstboot/yafti.yml @@ -62,7 +62,7 @@ screens: description: Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible default: true packages: - - Install Nix Package Support: just install-nix + - Install Nix Package Support: guisu just install-nix SteamDeckGyroDSU: description: Allows emulators and other applications to receive Steam Deck gyro motion data default: true diff --git a/system_files/desktop/etc/profile.d/guisu.sh b/system_files/desktop/etc/profile.d/guisu.sh new file mode 100755 index 00000000..8a084d14 --- /dev/null +++ b/system_files/desktop/etc/profile.d/guisu.sh @@ -0,0 +1,2 @@ +alias guisu="kdesu -u ${USER} -c" + diff --git a/system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml b/system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml index 571843a6..3f64561a 100644 --- a/system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml +++ b/system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml @@ -46,7 +46,7 @@ screens: description: Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible default: true packages: - - Install Nix Package Support: just install-nix + - Install Nix Package Support: guisu just install-nix System76 Scheduler: description: Enables System76 scheduler default: true