use execstart for update service
This commit is contained in:
parent
390cdd8fae
commit
40c48532b6
2 changed files with 5 additions and 9 deletions
|
|
@ -70,13 +70,12 @@
|
|||
|
||||
services."update-from-flake" = {
|
||||
path = with pkgs; [
|
||||
nixos-rebuild
|
||||
git
|
||||
];
|
||||
script = ''nixos-rebuild switch --flake github:itepastra/nixconf'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Type = "exec";
|
||||
User = "root";
|
||||
ExecStart = "${pkgs.nixos-rebuild-ng}/bin/nixos-rebuild switch --flake github:itepastra/nixconf";
|
||||
};
|
||||
wants = [
|
||||
"network-online.target"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue