forked from colonelpanic/dotfiles
[NixOS] Replace scripts with justfile
This commit is contained in:
parent
eccceb0d31
commit
4f669db603
@ -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
|
|
@ -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
|
|
14
nixos/justfile
Normal file
14
nixos/justfile
Normal file
@ -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
|
@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
rm flake.lock
|
|
||||||
nix flake update --impure --inputs-from .
|
|
||||||
sudo nixos-rebuild switch --flake '.#' --impure
|
|
@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
sudo nixos-rebuild switch --flake '.#' --impure "$@"
|
|
Loading…
Reference in New Issue
Block a user