88 lines
1.9 KiB
Nix
88 lines
1.9 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/87c6b0fb-b921-47d5-a3a1-4b4c0a4f02ad";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=root"
|
|
"discard=async"
|
|
"compress=zstd"
|
|
"nodiratime"
|
|
"noatime"
|
|
];
|
|
};
|
|
|
|
"/home" = {
|
|
device = "/dev/disk/by-uuid/87c6b0fb-b921-47d5-a3a1-4b4c0a4f02ad";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=home"
|
|
"discard=async"
|
|
"compress=zstd"
|
|
"nodiratime"
|
|
"noatime"
|
|
];
|
|
};
|
|
|
|
"/nix" = {
|
|
device = "/dev/disk/by-uuid/87c6b0fb-b921-47d5-a3a1-4b4c0a4f02ad";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=nix"
|
|
"discard=async"
|
|
"compress=zstd"
|
|
"nodiratime"
|
|
"noatime"
|
|
];
|
|
};
|
|
|
|
"/persist" = {
|
|
device = "/dev/disk/by-uuid/87c6b0fb-b921-47d5-a3a1-4b4c0a4f02ad";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=persist"
|
|
"discard=async"
|
|
"compress=zstd"
|
|
"nodiratime"
|
|
"noatime"
|
|
];
|
|
neededForBoot = true;
|
|
};
|
|
|
|
"/var/log" = {
|
|
device = "/dev/disk/by-uuid/87c6b0fb-b921-47d5-a3a1-4b4c0a4f02ad";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"subvol=log"
|
|
"discard=async"
|
|
"compress=zstd"
|
|
"nodiratime"
|
|
"noatime"
|
|
];
|
|
neededForBoot = true;
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/4339-5A4C";
|
|
fsType = "vfat";
|
|
options = ["fmask=0022" "dmask=0022"];
|
|
};
|
|
};
|
|
|
|
swapDevices = [{device = "/dev/disk/by-uuid/831be7b8-5b1b-4bda-a27d-5a1c4efb2c4d";}];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
# nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|