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 = {
|
aux.system.services.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configDir = config.secrets.nixConfigFolder;
|
configDir = config.secrets.nixConfigFolder;
|
||||||
extraFlags = "--build-host hevana";
|
|
||||||
onCalendar = "daily";
|
onCalendar = "daily";
|
||||||
user = config.users.users.aires.name;
|
user = config.users.users.aires.name;
|
||||||
};
|
};
|
||||||
|
|
|
@ -44,32 +44,6 @@ in
|
||||||
# To see all available timezones, run `timedatectl list-timezones`.
|
# To see all available timezones, run `timedatectl list-timezones`.
|
||||||
time.timeZone = "America/New_York";
|
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.
|
# Configure the system.
|
||||||
aux.system = {
|
aux.system = {
|
||||||
# Enable to allow unfree (e.g. closed source) packages.
|
# Enable to allow unfree (e.g. closed source) packages.
|
||||||
|
|
|
@ -50,7 +50,6 @@ in
|
||||||
services = {
|
services = {
|
||||||
autoUpgrade = {
|
autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraFlags = "--build-host hevana";
|
|
||||||
configDir = config.secrets.nixConfigFolder;
|
configDir = config.secrets.nixConfigFolder;
|
||||||
onCalendar = "weekly";
|
onCalendar = "weekly";
|
||||||
user = config.users.users.aires.name;
|
user = config.users.users.aires.name;
|
||||||
|
|
Loading…
Reference in a new issue