diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-01-29 17:47:43 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-01-29 17:57:39 +0100 |
| commit | acacbb12e440ba084ec6c8b8752e383464b5926b (patch) | |
| tree | 7462cefe9366dc02aafee49dc0658c29429f8648 /config/nix.nix | |
| parent | c3fada601adf6088537316e0d215051643922674 (diff) | |
nix: remote builds: factor out
Diffstat (limited to 'config/nix.nix')
| -rw-r--r-- | config/nix.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config/nix.nix b/config/nix.nix new file mode 100644 index 0000000..b07f339 --- /dev/null +++ b/config/nix.nix @@ -0,0 +1,30 @@ +{...}: { + personal.nix = { + enable = true; + autoUpgrade = { + enable = true; + autoUpdateInputs = ["nixpkgs" "nixpkgs-unstable"]; + }; + gc.enable = true; + flake = "git+file:///etc/nixos/"; + remoteBuilds = { + enable = true; + machines.hephaistos = { + enable = true; + domain = "aristote.mesh"; + }; + }; + }; + + nix.settings.max-jobs = 1; + nixpkgs.flake = { + setNixPath = true; + setFlakeRegistry = true; + }; + + systemd.services.nixos-upgrade.serviceConfig = { + MemoryAccounting = true; + MemoryHigh = "1G"; + MemoryMax = "1.5G"; + }; +} |
