nix builder

This commit is contained in:
2026-08-26 17:28:09 +09:00
parent 32a3067cb0
commit d43f19c20a
2 changed files with 25 additions and 0 deletions
+23
View File
@@ -1,4 +1,27 @@
{
imports = [ ./hardware-configuration.nix ];
fileSystems."/nix/store" = {
device = "/dev/disk/by-label/nix-store";
fsType = "ext4";
options = [
"noatime"
];
neededForBoot = true;
};
fileSystems."/var/lib/nix-build" = {
device = "/dev/disk/by-label/nix-build";
fsType = "ext4";
options = [
"noatime"
];
};
nix.settings.build-dir = "/var/lib/nix-build";
services.fstrim.enable = true;
}