mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-30 11:04:19 +00:00
Switch to shell command and add git pull
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
# startAt = "*:0/1";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "/run/current-system/sw/bin/bash -c '/etc/nixos && sudo nixos-rebuild switch --flake #${networking.hostName}'";
|
||||
ExecStart = "/run/current-system/sw/bin/bash -c '/etc/nixos && git pull && sudo nixos-rebuild switch --flake #$(hostname)'";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user