diff --git a/nixos/expire-home-manager-generations.sh b/nixos/expire-home-manager-generations.sh deleted file mode 100755 index 3835b726..00000000 --- a/nixos/expire-home-manager-generations.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -for user in $(awk -F':' '{ if ($3 >= 1000 && $7 !~ /nologin|false|sync|shutdown|halt/) print $1 }' /etc/passwd); do - echo $user - sudo su - $user -c 'home-manager expire-generations -1days' -done diff --git a/nixos/fix-update-inputs-issue.sh b/nixos/fix-update-inputs-issue.sh deleted file mode 100755 index 259b6d3d..00000000 --- a/nixos/fix-update-inputs-issue.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env sh - -nix flake lock --update-input imalison-taffybar -# nix flake lock --update-input taffybar -# nix flake lock --update-input xmonad -# nix flake lock --update-input xmonad-contrib diff --git a/nixos/justfile b/nixos/justfile new file mode 100644 index 00000000..0093f940 --- /dev/null +++ b/nixos/justfile @@ -0,0 +1,14 @@ +switch *args: + sudo nixos-rebuild switch --flake '.#' --impure {{args}} + +fix-local-path-issue: + nix flake lock --update-input imalison-taffybar + + +expire-home-manager-generations: + #!/usr/bin/env bash + set -euxo pipefail + for user in $(awk -F':' '{ if ($3 >= 1000 && $7 !~ /nologin|false|sync|shutdown|halt/) print $1 }' /etc/passwd); do + echo $user + sudo su - $user -c 'home-manager expire-generations -1days' + done diff --git a/nixos/rebuild.sh b/nixos/rebuild.sh deleted file mode 100755 index 7c54a76e..00000000 --- a/nixos/rebuild.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -rm flake.lock -nix flake update --impure --inputs-from . -sudo nixos-rebuild switch --flake '.#' --impure diff --git a/nixos/switch.sh b/nixos/switch.sh deleted file mode 100755 index 104e0942..00000000 --- a/nixos/switch.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -sudo nixos-rebuild switch --flake '.#' --impure "$@"