blob: a034a555f96f1bc7f72ab375f55e9eb61d539f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, lib, pkgs, ... }:
{
systemd.services = {
nixos-config-pull = {
description = "Pull nixos config from git.";
path = [ pkgs.git ];
wantedBy = [ "nixos-upgrade.service" ];
before = [ "nixos-upgrade.service" ];
serviceConfig = {
Type = "oneshot";
User = "orbekk";
};
script = ''
cd /opt/site/nixos-config
git pull
'';
};
};
system.autoUpgrade = {
enable = true;
};
}
|