use system configured nix and nixos-rebuild

This commit is contained in:
Noa Aarts 2025-05-09 10:11:47 +02:00
parent 40c48532b6
commit 16ba56e9dc
Signed by: noa
GPG key ID: 1850932741EFF672
3 changed files with 39 additions and 31 deletions

View file

@ -122,7 +122,7 @@ in
serviceConfig = {
Type = "exec";
User = "root";
ExecStart = "${pkgs.nixos-rebuild-ng}/bin/nixos-rebuild boot --flake github:itepastra/nixconf";
ExecStart = "${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch --flake github:itepastra/nixconf";
ExecStopPost = ''shutdown -r +5 "Preparing update finished, rebooting..."'';
};
wants = [