Khanda: build packages locally because I'm a silly lil guy who can't figure out how to automate --build-host without SSH throwing a fit
This commit is contained in:
parent
17887a7da6
commit
d27c770e77
|
@ -47,7 +47,6 @@ To enable automatic updates for a host, set `aux.system.services.autoUpgrade = t
|
|||
aux.system.services.autoUpgrade = {
|
||||
enable = true;
|
||||
configDir = config.secrets.nixConfigFolder;
|
||||
extraFlags = "--build-host hevana";
|
||||
onCalendar = "daily";
|
||||
user = config.users.users.aires.name;
|
||||
};
|
||||
|
|
|
@ -44,32 +44,6 @@ in
|
|||
# To see all available timezones, run `timedatectl list-timezones`.
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
# Build Nix packages for other hosts.
|
||||
# Runs every day at 4 AM
|
||||
systemd = {
|
||||
services."build-hosts" = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
path = config.aux.system.corePackages;
|
||||
script = ''
|
||||
cd ${config.secrets.nixConfigFolder}
|
||||
nixos-rebuild build --flake .#Khanda
|
||||
'';
|
||||
};
|
||||
timers."build-hosts" = {
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "04:00";
|
||||
Persistent = true;
|
||||
Unit = "build-hosts.service";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure the system.
|
||||
aux.system = {
|
||||
# Enable to allow unfree (e.g. closed source) packages.
|
||||
|
|
|
@ -50,7 +50,6 @@ in
|
|||
services = {
|
||||
autoUpgrade = {
|
||||
enable = true;
|
||||
extraFlags = "--build-host hevana";
|
||||
configDir = config.secrets.nixConfigFolder;
|
||||
onCalendar = "weekly";
|
||||
user = config.users.users.aires.name;
|
||||
|
|
Loading…
Reference in a new issue