add nixos-rebuild to auto update path
This commit is contained in:
parent
e76cf540e5
commit
56bea71521
1 changed files with 3 additions and 0 deletions
|
|
@ -126,6 +126,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."update-from-flake" = {
|
systemd.services."update-from-flake" = {
|
||||||
|
path = with pkgs; [
|
||||||
|
nixos-rebuild
|
||||||
|
];
|
||||||
script = ''nixos-rebuild switch --flake github:itepastra/nixconf'';
|
script = ''nixos-rebuild switch --flake github:itepastra/nixconf'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue