mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
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:
parent
1c416dc728
commit
733eda4798
8 changed files with 44 additions and 57 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue