Update default.nix
This commit is contained in:
parent
47f20759c0
commit
e2dd48bc22
1 changed files with 30 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue