2023-02-11 04:58:34 +01:00
|
|
|
|
# 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" "ahci" "usb_storage" "sd_mod"];
|
|
|
|
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
|
|
|
|
boot.kernelModules = ["kvm-amd"];
|
|
|
|
|
boot.extraModulePackages = [];
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
|
luksroot = {
|
|
|
|
|
device = "/dev/disk/by-uuid/170cdc3f-2b04-4123-93ea-5e03136f6548";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/894ceea3-0596-4652-89fd-772fbb82474c";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["subvol=root" "compress=zstd"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/894ceea3-0596-4652-89fd-772fbb82474c";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["subvol=home" "compress=zstd"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/894ceea3-0596-4652-89fd-772fbb82474c";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["subvol=nix" "compress=zstd" "noatime"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/D3BE-5F94";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
|
{device = "/dev/disk/by-uuid/72a4ce61-6cb8-4996-9966-83de91a49b6c";}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# 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.enp37s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
# high-resolution display
|
|
|
|
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
2023-03-10 02:49:49 +01:00
|
|
|
|
hardware.opengl = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
intel-media-driver
|
|
|
|
|
vaapiIntel
|
|
|
|
|
vaapiVdpau
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
];
|
|
|
|
|
};
|
2023-02-11 04:58:34 +01:00
|
|
|
|
}
|