]> Git — Sourcephile - julm/julm-nix.git/blob - install
add homes/install
[julm/julm-nix.git] / install
1 #!/bin/sh -eux
2 if test $(id -u) != 0
3 then sudo "$0" "$@"
4 else
5 nixos-rebuild switch --flake "${0%/*}"/ "$@"
6 nix-env --delete-generations +2 --profile /nix/var/nix/profiles/system
7 fi