Switch to packages definition

This commit is contained in:
2025-12-07 19:58:48 -08:00
parent 54bb3cb054
commit 5d041ac5c7

View File

@@ -7,7 +7,7 @@
# startAt = "*:0/1";
serviceConfig = {
Type = "simple";
ExecStart = "/run/current-system/sw/bin/bash -c 'cd /etc/nixos && /run/current-system/sw/bin/git pull && /run/current-system/sw/bin/nixos-rebuild switch --flake #$(hostname)'";
ExecStart = "${pkgs.bash}/bin/bash -c 'cd /etc/nixos && ${pkgs.git}/bin/git pull && ${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --flake #$(hostname)'";
};
};