65 lines
1.8 KiB
Nix
65 lines
1.8 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,
|
||
pkgs,
|
||
modulesPath,
|
||
...
|
||
}:
|
||
|
||
let
|
||
yt6801 = import ./yt6801.nix {
|
||
inherit (pkgs) stdenv lib fetchzip;
|
||
kernel = pkgs.linuxPackages.kernel;
|
||
};
|
||
in
|
||
{
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"nvme"
|
||
"xhci_pci"
|
||
"thunderbolt"
|
||
"usb_storage"
|
||
"sd_mod"
|
||
"sdhci_pci"
|
||
];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [
|
||
"kvm-amd"
|
||
"crypto_simd"
|
||
"cryptd"
|
||
];
|
||
boot.extraModulePackages = [ yt6801 ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/292e05de-6ddb-4a31-bc8a-92314b13d5c8";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-bbe16a5b-ae1e-4297-a250-ebb8e950e12c".device = "/dev/disk/by-uuid/bbe16a5b-ae1e-4297-a250-ebb8e950e12c";
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/28FA-4261";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0077" "dmask=0077" ];
|
||
};
|
||
|
||
swapDevices =
|
||
[ { device = "/dev/disk/by-uuid/f4aac953-a60d-478a-84bc-ac659360ca03"; }
|
||
];
|
||
|
||
# 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.wlp2s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|