From 091c9c5e8562fcb1e2da66c8a0a1bbdc2833c7e7 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sun, 3 May 2026 02:21:30 -0500 Subject: [PATCH] Compartmentalizing stuffs --- flake.nix | 3 ++- hosts/laptop-nixos-1/{hostname.nix => configuration.nix} | 1 + swap/16G.nix | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) rename hosts/laptop-nixos-1/{hostname.nix => configuration.nix} (97%) create mode 100644 swap/16G.nix 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; + } + ]; +}