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

@ -3,6 +3,7 @@
# and in the NixOS manual (accessible by running nixos-help).
{
config,
pkgs,
...
}:
@ -75,7 +76,7 @@
serviceConfig = {
Type = "exec";
User = "root";
ExecStart = "${pkgs.nixos-rebuild-ng}/bin/nixos-rebuild switch --flake github:itepastra/nixconf";
ExecStart = "${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch --flake github:itepastra/nixconf";
};
wants = [
"network-online.target"