added filesystems again this way

This commit is contained in:
twoneis 2024-05-25 04:30:33 +02:00
parent da5ae31872
commit 3b4a6d9f93
2 changed files with 23 additions and 1 deletions

View file

@ -2,7 +2,6 @@
imports = [
./hardware-config.nix
./options.nix
./disko.nix
];
networking.hostName = "akarso";

View file

@ -3,11 +3,34 @@
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ ];
luks.devices.cryptroot.device = "/dev/disk/by-uuid/A7FE-359B";
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/A7FE-359B";
fsType = "vfat";
};
"/" = {
device = "/dev/disk/by-uuid/542f188a-bcca-438a-97d3-fdaff0cacd83";
fsType = "btrfs";
options = [ "subvol=root" "compress=zstd" "noatime" ];
};
"/nix" = {
device = "/dev/disk/by-uuid/542f188a-bcca-438a-97d3-fdaff0cacd83";
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime" ];
};
"/persist" = {
device = "/dev/disk/by-uuid/542f188a-bcca-438a-97d3-fdaff0cacd83";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" "noatime" ];
};
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";