made username easily changable

switched from independant home-manager updating to unified updating
updated disk parttion uuid's after resintalling
This commit is contained in:
ISnortPennies 2023-01-19 17:54:29 -05:00
parent 1c416dc728
commit 733eda4798
8 changed files with 44 additions and 57 deletions

View file

@ -18,10 +18,6 @@ let
nix-collect-garbage -d
'';
apply-user = pkgs.writeShellScriptBin "apply-user" ''
home-manager switch --flake /etc/nixos/#$(whoami)
'';
apply-system = pkgs.writeShellScriptBin "apply-system" ''
if ! [ $(id -u) = 0 ]; then
echo "RUN AS ROOT"
@ -37,8 +33,6 @@ let
fi
update-system
apply-system
apply-user
sudo -u gerg apply-user
'';
polybar-tray = pkgs.writeShellScriptBin "polybar-tray" ''
@ -52,5 +46,5 @@ let
curl -F 'clbin=<-' https://clbin.com
'';
in {
environment.systemPackages = [ update-system clean-store apply-user apply-system polybar-tray full-upgrade pastebin];
environment.systemPackages = [ update-system clean-store apply-system polybar-tray full-upgrade pastebin];
}