From e2dd48bc22811752ac00e8d3fc4cbcd1de7f1717 Mon Sep 17 00:00:00 2001 From: Mira Chacku Purakal <48321566+twoneis@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:51:44 +0100 Subject: [PATCH] Update default.nix --- devices/inkvine/default.nix | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/devices/inkvine/default.nix b/devices/inkvine/default.nix index 9d54065..38b1507 100644 --- a/devices/inkvine/default.nix +++ b/devices/inkvine/default.nix @@ -3,7 +3,6 @@ inherit (config.device) disks; in { imports = [ - ./disko.nix ./options.nix ]; @@ -14,6 +13,7 @@ in { boot = { initrd = { availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; + luks.devices.root.device = "/dev/disk/by-label/CRYPT"; kernelModules = [ "amdgpu" ]; }; kernelPackages = pkgs.linuxPackages_zen; @@ -26,9 +26,37 @@ in { }; }; + fileSystems = { + "/boot" = { + device = "/dev/disk/by-label/BOOT"; + fsType = "vfat"; + }; + "/" = { + device = "/dev/disk/by-label/ROOT"; + fsType = "btrfs"; + options = [ "subvol=root" "compress=zstd" "noatime" ]; + }; + "/nix" = { + device = "/dev/disk/by-label/ROOT"; + fsType = "btrfs"; + options = [ "subvol=nix" "compress=zstd" "noatime" ]; + neededForBoot = true; + }; + "/swap" = { + device = "/dev/disk/by-label/ROOT"; + fsType = "btrfs"; + options = [ "subvol=swap" "noatime" ]; + }; + }; + swapDevices = [ { device = "/swap/swapfile"; } ]; + services = { - fwupd.enable = true; + fwupd.enable = true; power-profiles-daemon.enable = true; + btrfs.autoScrub = { + enable = true; + fileSystems = [ "/" ]; + }; }; hardware = {