summaryrefslogtreecommitdiff
path: root/nixos/lindy.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/lindy.nix')
-rw-r--r--nixos/lindy.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/nixos/lindy.nix b/nixos/lindy.nix
index 04ba248..bcc662e 100644
--- a/nixos/lindy.nix
+++ b/nixos/lindy.nix
@@ -12,6 +12,16 @@
];
networking.hostName = "lindy";
+ networking.hostId = "00000000";
+
+ # ZFS config
+ boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
+ boot.supportedFilesystems = [ "zfs" ];
+ boot.zfs.devNodes = "/dev/mapper";
+ boot.zfs.extraPools = [ "Zonz" ];
+ services.zfs.autoScrub.enable = true;
+ services.zfs.autoScrub.pools = [ "Zonz" ];
+ environment.systemPackages = [ pkgs.zfs ];
# Use Grub
boot.loader.grub.enable = true;
@@ -19,7 +29,6 @@
boot.loader.grub.extraGrubInstallArgs = [ "--bootloader-id=NixOS" ];
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.efi.canTouchEfiVariables = true;
- boot.plymouth.enable = true;
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" ];
@@ -34,19 +43,30 @@
};
};
+ environment.etc.crypttab = {
+ enable = true;
+ text = ''
+Kurisu UUID=f593d307-66cc-4586-a899-f1ca20d74430 /root/kurisu_key
+Kogami UUID=61534c91-df18-4c71-9244-54e677f5d4fa /root/kogami_key
+ '';
+ };
+
fileSystems."/" = {
device = "/dev/disk/by-uuid/2e64e6fc-ab7c-4620-b56b-faee641bd2a6";
fsType = "ext4";
+ options = [ "discard" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/1ef4b6f4-975d-4e04-9d88-0640e83ed0b4";
fsType = "ext4";
+ options = [ "discard" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/0728e7e5-8e21-44bd-9287-eb066d489a0e";
fsType = "ext4";
+ options = [ "discard" ];
};
fileSystems."/boot/efi" = {