diff --git a/hosts/desktops/common/nix.nix b/hosts/desktops/common/nix.nix index 3b2c239..b145faf 100644 --- a/hosts/desktops/common/nix.nix +++ b/hosts/desktops/common/nix.nix @@ -6,7 +6,7 @@ nix = { registry.nixpkgs.flake = inputs.nixpkgs; nixPath = [ - "nixpkgs=/etc/channels/nixpkgs" + "nixpkgs=${inputs.nixpkgs}" "/nix/var/nix/profiles/per-user/root/channels" ]; }; diff --git a/hosts/desktops/io.nix b/hosts/desktops/io.nix index 84d3a23..556f994 100644 --- a/hosts/desktops/io.nix +++ b/hosts/desktops/io.nix @@ -12,6 +12,8 @@ networking.hostName = "io"; + nix.nixPath = [ "nixos-config=${./io.nix}" ]; + zramSwap = { enable = true; memoryPercent = 100; diff --git a/hosts/servers/alexandria.nix b/hosts/servers/alexandria.nix index a24b57a..2832f4e 100644 --- a/hosts/servers/alexandria.nix +++ b/hosts/servers/alexandria.nix @@ -12,6 +12,8 @@ users.users.user.extraGroups = [ "docker" ]; + nix.nixPath = [ "nixos-config=${./alexandria.nix}" ]; + swapDevices = [ { device = "/swapfile"; size = 8192; } ]; networking = {