Changes for the new limina

This commit is contained in:
2021-10-12 23:54:43 -07:00
parent 9c024fd9ee
commit 283afec419
2 changed files with 23 additions and 42 deletions
+19 -23
View File
@@ -15,47 +15,43 @@ with lib; {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
supportedFilesystems = [ "zfs" ];
# kernelPackages = pkgs.linuxPackages_latest;
};
fileSystems = {
"/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
"/" = {
device = "limina-root";
fsType = "tmpfs";
options = [ "mode=755" "noexec" ];
};
"/" = {
device = "zroot/transient/root";
fsType = "zfs";
"/boot" = {
device = "/dev/disk/by-label/LIM-BOOT";
fsType = "vfat";
options = [ "noexec" "noatime" "nodiratime" ];
};
"/nix" = {
device = "zroot/transient/nix";
fsType = "zfs";
device = "/dev/disk/by-label/limina-root";
fsType = "btrfs";
options = [ "subvol=@nix" "noexec" "noatime" "nodiratime" ];
};
"/var/log" = {
device = "zroot/transient/logs";
fsType = "zfs";
device = "/dev/disk/by-label/limina-root";
fsType = "btrfs";
options = [ "subvol=@log" "noexec" "noatime" "nodiratime" ];
neededForBoot = true;
};
"/home" = {
device = "zroot/persistent/home";
fsType = "zfs";
};
"/state" = {
device = "zroot/persistent/state";
fsType = "zfs";
device = "/dev/disk/by-label/limina-root";
fsType = "btrfs";
options = [ "subvol=@state" "noexec" "noatime" "nodiratime" ];
neededForBoot = true;
};
};
services.zfs.autoScrub.enable = true;
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
swapDevices = [{ device = "/dev/disk/by-label/limina-swap"; }];
nix.maxJobs = lib.mkDefault 4;