74 lines
2.2 KiB
Nix
74 lines
2.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
|
kernelModules = [];
|
|
luks.devices."enc".device = "/dev/disk/by-uuid/1bda09f1-5b2c-4040-ab71-cee54a6df910";
|
|
};
|
|
kernelModules = ["amdgpu"];
|
|
extraModulePackages = [];
|
|
supportedFilesystems = ["btrfs"];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/529700f1-0da2-4e1e-91bc-617c267df1dd";
|
|
fsType = "btrfs";
|
|
options = ["subvol=root" "compress=zstd"];
|
|
};
|
|
|
|
"/home" = {
|
|
device = "/dev/disk/by-uuid/529700f1-0da2-4e1e-91bc-617c267df1dd";
|
|
fsType = "btrfs";
|
|
options = ["subvol=home" "compress=zstd"];
|
|
};
|
|
|
|
"/nix" = {
|
|
device = "/dev/disk/by-uuid/529700f1-0da2-4e1e-91bc-617c267df1dd";
|
|
fsType = "btrfs";
|
|
options = ["subvol=nix" "compress=zstd" "noatime"];
|
|
};
|
|
|
|
"/persist" = {
|
|
device = "/dev/disk/by-uuid/529700f1-0da2-4e1e-91bc-617c267df1dd";
|
|
fsType = "btrfs";
|
|
options = ["subvol=persist" "compress=zstd"];
|
|
};
|
|
|
|
"/var/log" = {
|
|
device = "/dev/disk/by-uuid/529700f1-0da2-4e1e-91bc-617c267df1dd";
|
|
fsType = "btrfs";
|
|
options = ["subvol=log" "compress=zstd"];
|
|
neededForBoot = true;
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/12CE-A600";
|
|
fsType = "vfat";
|
|
options = ["fmask=0022" "dmask=0022" "umask=0077"];
|
|
};
|
|
};
|
|
|
|
swapDevices = [];
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
networking.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.enp6s0.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|