73 lines
2.4 KiB
Nix
73 lines
2.4 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,
|
||
...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
||
boot.initrd.kernelModules = ["dm-snapshot" "amdgpu"];
|
||
boot.kernelModules = ["kvm-amd"];
|
||
boot.extraModulePackages = [];
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/9c2a06d8-bff5-4587-95a6-e25495e9c4ec";
|
||
fsType = "btrfs";
|
||
options = ["subvol=nixos/@"];
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "/dev/disk/by-uuid/9c2a06d8-bff5-4587-95a6-e25495e9c4ec";
|
||
fsType = "btrfs";
|
||
options = ["subvol=nixos/@nix"];
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-uuid/9c2a06d8-bff5-4587-95a6-e25495e9c4ec";
|
||
fsType = "btrfs";
|
||
options = ["subvol=@home"];
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/50D3-45F0";
|
||
fsType = "vfat";
|
||
options = ["fmask=0022" "dmask=0022"];
|
||
};
|
||
|
||
fileSystems."/efi" = {
|
||
device = "/dev/disk/by-uuid/4E1B-8BEE";
|
||
fsType = "vfat";
|
||
options = ["fmask=0022" "dmask=0022"];
|
||
};
|
||
|
||
swapDevices = [
|
||
{device = "/dev/disk/by-uuid/9360890a-4050-4326-bf5f-8fa2bdc6744a";}
|
||
];
|
||
fileSystems."/.btrfsroot" = {
|
||
device = "/dev/disk/by-uuid/9c2a06d8-bff5-4587-95a6-e25495e9c4ec";
|
||
fsType = "btrfs";
|
||
};
|
||
|
||
# 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.br-6b5c424872ae.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.virbr0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|