Fix auto-update scripts
This commit is contained in:
parent
1580586883
commit
9342ab263a
|
@ -120,6 +120,15 @@ in
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = config.users.users.aires.name;
|
User = config.users.users.aires.name;
|
||||||
};
|
};
|
||||||
|
path = with pkgs; [
|
||||||
|
coreutils
|
||||||
|
gnutar
|
||||||
|
xz.bin
|
||||||
|
gzip
|
||||||
|
git
|
||||||
|
config.nix.package.out
|
||||||
|
openssh
|
||||||
|
];
|
||||||
script = ''
|
script = ''
|
||||||
set -eu
|
set -eu
|
||||||
cd ${config.users.users.aires.home}/Development/nix-configuration
|
cd ${config.users.users.aires.home}/Development/nix-configuration
|
||||||
|
|
|
@ -32,11 +32,21 @@
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "root";
|
User = "root";
|
||||||
};
|
};
|
||||||
|
path = with pkgs; [
|
||||||
|
coreutils
|
||||||
|
gnutar
|
||||||
|
xz.bin
|
||||||
|
gzip
|
||||||
|
git
|
||||||
|
config.nix.package.out
|
||||||
|
nh
|
||||||
|
openssh
|
||||||
|
];
|
||||||
script = ''
|
script = ''
|
||||||
set -eu
|
set -eu
|
||||||
cd ${config.users.users.aires.home}/Development/nix-configuration
|
cd ${config.users.users.aires.home}/Development/nix-configuration
|
||||||
sudo -u aires git pull --recurse-submodules
|
sudo -u aires git pull --recurse-submodules
|
||||||
nh os switch
|
nh os switch
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
systemd.timers."nixos-update-timer" = {
|
systemd.timers."nixos-update-timer" = {
|
||||||
|
|
Loading…
Reference in a new issue