67 lines
1.9 KiB
Nix
67 lines
1.9 KiB
Nix
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|||
|
# and may be overwritten by future invocations. Please make changes
|
|||
|
# to /etc/nixos/configuration.nix instead.
|
|||
|
{
|
|||
|
config,
|
|||
|
lib,
|
|||
|
modulesPath,
|
|||
|
...
|
|||
|
}:
|
|||
|
|
|||
|
{
|
|||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|||
|
|
|||
|
boot = {
|
|||
|
initrd = {
|
|||
|
availableKernelModules = [
|
|||
|
"nvme"
|
|||
|
"xhci_pci"
|
|||
|
"ahci"
|
|||
|
"usb_storage"
|
|||
|
"sd_mod"
|
|||
|
];
|
|||
|
kernelModules = [ ];
|
|||
|
luks.devices = {
|
|||
|
"luks-rpool-nvme-Samsung_SSD_970_EVO_Plus_1TB_S6S1NS0T617615W-part2".device = "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_1TB_S6S1NS0T617615W-part2";
|
|||
|
};
|
|||
|
};
|
|||
|
kernelModules = [ "kvm-amd" ];
|
|||
|
extraModulePackages = [ ];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems = {
|
|||
|
"/" = lib.mkDefault {
|
|||
|
device = "rpool/root";
|
|||
|
fsType = "zfs";
|
|||
|
};
|
|||
|
|
|||
|
"/home" = {
|
|||
|
device = "rpool/home";
|
|||
|
fsType = "zfs";
|
|||
|
};
|
|||
|
|
|||
|
"/boot" = {
|
|||
|
device = "/dev/disk/by-uuid/8AE6-270D";
|
|||
|
fsType = "vfat";
|
|||
|
options = [
|
|||
|
"fmask=0077"
|
|||
|
"dmask=0077"
|
|||
|
];
|
|||
|
};
|
|||
|
};
|
|||
|
|
|||
|
swapDevices = [ { device = "/dev/disk/by-uuid/2ece9ba5-e892-400d-8b50-2126a8eb2fa0"; } ];
|
|||
|
|
|||
|
# 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.eno1.useDHCP = lib.mkDefault true;
|
|||
|
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
|
|||
|
# networking.interfaces.wlp11s0.useDHCP = lib.mkDefault true;
|
|||
|
|
|||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|||
|
}
|