From e7c2472f62a1b395301c03c83cf93b436fb3a76d Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sat, 22 Mar 2025 21:24:03 +0100 Subject: split nix and system; fix remote building; reboot after upgrade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'my-nixpkgs': 'github:qaristote/my-nixpkgs/65eb03f15116223871d06254dc453abc79bcffaa' (2025-03-18) → 'github:qaristote/my-nixpkgs/f2e0f4c86f3318cc6df018b1948dd5bade77f082' (2025-03-22) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/4f4d97d7b7be387286cc9c988760a7ebaa5be1f1' (2025-03-17) → 'github:NixOS/nixos-hardware/380ed15bcd6440606c6856db44a99140d422b46f' (2025-03-22) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/a1185f4064c18a5db37c5c84e5638c78b46e3341' (2025-03-16) → 'github:NixOS/nixpkgs/7105ae3957700a9646cc4b766f5815b23ed0c682' (2025-03-20) --- config/default.nix | 1 + config/nix.nix | 19 +------------------ config/system.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 config/system.nix (limited to 'config') diff --git a/config/default.nix b/config/default.nix index 974736f..b36b01f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -6,6 +6,7 @@ ./hardware ./networking ./nix.nix + ./system.nix ./users.nix ]; diff --git a/config/nix.nix b/config/nix.nix index 4c95ce6..3142f93 100644 --- a/config/nix.nix +++ b/config/nix.nix @@ -1,28 +1,11 @@ {...}: { personal.nix = { enable = true; - autoUpgrade.enable = true; gc.enable = true; - flake = "git+file:///etc/nixos/"; - remoteBuilds = { - enable = true; - machines.hephaistos = { - enable = true; - domain = "local"; - }; - }; }; - # disable local builds - nix.settings.max-jobs = 0; + nixpkgs.flake = { setNixPath = true; setFlakeRegistry = true; }; - system.autoUpgrade = { - flags = [ - # for reading secrets from a file - "--impure" - ]; - dates = "02:00"; - }; } diff --git a/config/system.nix b/config/system.nix new file mode 100644 index 0000000..5b6ba5f --- /dev/null +++ b/config/system.nix @@ -0,0 +1,17 @@ +{...}: { + personal.system = { + flake = "git+file:///etc/nixos/"; + autoUpgrade = { + enable = true; + remoteBuilding = { + enable = true; + builder.domain = "local"; + }; + }; + }; + + system.autoUpgrade = { + allowReboot = true; + dates = "02:00"; + }; +} -- cgit v1.2.3