From d27c770e7703a68adb9110aaeebce76278fbcf26 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 18 Oct 2024 11:30:57 -0400 Subject: [PATCH] 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 --- README.md | 1 - hosts/Hevana/default.nix | 26 -------------------------- hosts/Khanda/default.nix | 1 - 3 files changed, 28 deletions(-) diff --git a/README.md b/README.md index 51dae82..95d6aea 100644 --- a/README.md +++ b/README.md @@ -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; }; diff --git a/hosts/Hevana/default.nix b/hosts/Hevana/default.nix index 5d632b6..545881b 100644 --- a/hosts/Hevana/default.nix +++ b/hosts/Hevana/default.nix @@ -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. diff --git a/hosts/Khanda/default.nix b/hosts/Khanda/default.nix index a6e0c3c..5f72077 100644 --- a/hosts/Khanda/default.nix +++ b/hosts/Khanda/default.nix @@ -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;