use system configured nix and nixos-rebuild
This commit is contained in:
parent
40c48532b6
commit
16ba56e9dc
3 changed files with 39 additions and 31 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue