System Gen109 @ 2024-06-13-13:13:12

This commit is contained in:
Jonas Röger 2024-06-13 13:13:13 +02:00
parent d705f2566a
commit 5e3bb04a94

View File

@ -46,11 +46,27 @@
${pkgs.git}/bin/git commit --no-gpg-sign -am "Upgrade $gen"
popd
'';
update =
pkgs.writeShellScriptBin ".nixos-update"
''
set -e
pushd ~/.nixos/
if [ -n "$(${pkgs.git}/bin/git status --porcelain)" ]; then
echo ".nixos is unclean!"
exit 1
fi
echo "Updating nix-flake..."
nix flake update .
echo "NixOS Building..."
${pkgs.unstable.nh}/bin/nh os build ~/.nixos
popd
'';
in {
environment.systemPackages = [
pkgs.bash
home-rebuild
rebuild
upgrade
update
];
}