diff --git a/flake.nix b/flake.nix index 5995ae9..60ffee5 100644 --- a/flake.nix +++ b/flake.nix @@ -10,8 +10,9 @@ system = "x86_64-linux"; modules = [ ./configuration.nix - ./hosts/laptop-nixos-1/hostname.nix + ./hosts/laptop-nixos-1/configuration.nix ./hosts/laptop-nixos-1/hardware-configuration.nix + ./swap/16G.nix ]; }; }; diff --git a/hosts/laptop-nixos-1/hostname.nix b/hosts/laptop-nixos-1/configuration.nix similarity index 97% rename from hosts/laptop-nixos-1/hostname.nix rename to hosts/laptop-nixos-1/configuration.nix index 31c603e..61c4466 100644 --- a/hosts/laptop-nixos-1/hostname.nix +++ b/hosts/laptop-nixos-1/configuration.nix @@ -1,3 +1,4 @@ { networking.hostName = "laptop-nixos-1"; + } diff --git a/swap/16G.nix b/swap/16G.nix new file mode 100644 index 0000000..8cc73fc --- /dev/null +++ b/swap/16G.nix @@ -0,0 +1,8 @@ +{ + swapDevices = [ + { + device = "/swap-16"; + size = 16 * 1024; + } + ]; +}