summaryrefslogtreecommitdiff
path: root/config/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/nix.nix')
-rw-r--r--config/nix.nix30
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";
+ };
+}