commit 270f70e5404a1ee467502d23622b2b4fdf238cd6
parent 09a33d8c71ab3d9ac0119a565b9d3a7a8247e7ec
Author: Toni Brown <me@tb148.net>
Date: Fri, 30 Jan 2026 15:20:19 +0800
use swap file instead of swap partition
Diffstat:
2 files changed, 24 insertions(+), 26 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -7,11 +7,11 @@
]
},
"locked": {
- "lastModified": 1768575137,
- "narHash": "sha256-e0SsKnkSnq+UwZNS9ZyPJjTjabzq9TRc1hqeDnvOF1Q=",
+ "lastModified": 1769432988,
+ "narHash": "sha256-q4arZjXnLiuMnLzO972lrXIGdzyGb4DGaIt69CcCYdE=",
"ref": "main",
- "rev": "48e67b4ad22072f1ae30b0ed8e1cb020cf06c611",
- "revCount": 588,
+ "rev": "d7a8632c0d8d144478aac1a8c8d5083b770cbb03",
+ "revCount": 591,
"type": "git",
"url": "ssh://git@github.com/catppuccin/nix.git"
},
@@ -28,11 +28,11 @@
]
},
"locked": {
- "lastModified": 1768707181,
- "narHash": "sha256-GdwFfnwdUgABFpc4sAmX7GYx8eQs6cEjOPo6nBJ0YaI=",
+ "lastModified": 1769638001,
+ "narHash": "sha256-hGwdJ/+oo+IRo2TiWV/V8BWWptQihcdFV/olTONaHqg=",
"ref": "master",
- "rev": "83bcb17377f0242376a327e742e9404e9a528647",
- "revCount": 6109,
+ "rev": "bd9f031efc634be4b80c5090b9171cc3a9f8e49c",
+ "revCount": 6169,
"type": "git",
"url": "ssh://git@github.com/nix-community/home-manager.git"
},
@@ -44,11 +44,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1768564909,
- "narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
+ "lastModified": 1769461804,
+ "narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
"ref": "nixos-unstable",
- "rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
- "revCount": 928726,
+ "rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
+ "revCount": 935279,
"type": "git",
"url": "https://mirrors.tuna.tsinghua.edu.cn/git/nixpkgs.git"
},
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
@@ -12,15 +12,7 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = [
- "xhci_pci"
- "thunderbolt"
- "vmd"
- "nvme"
- "usbhid"
- "usb_storage"
- "sd_mod"
- ];
+ boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
@@ -46,14 +38,20 @@
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/7498-1041";
fsType = "vfat";
- options = [
- "fmask=0022"
- "dmask=0022"
- ];
+ options = ["fmask=0022" "dmask=0022"];
+ };
+
+ fileSystems."/swap" = {
+ device = "/dev/disk/by-uuid/18af5e11-1470-4fa6-9577-8e8ba513857c";
+ fsType = "btrfs";
+ options = ["subvol=swap"];
};
swapDevices = [
- {device = "/dev/disk/by-uuid/3a9c8feb-74f7-47f3-8736-82f3b9d35791";}
+ {
+ device = "/swap/swapfile";
+ size = 24 * 1024;
+ }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking