2023-02-24 17:34:42 +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.
|
2023-02-27 16:57:43 +01:00
|
|
|
|
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
2023-02-27 16:57:43 +01:00
|
|
|
|
let
|
|
|
|
|
inherit (inputs) nixos-hardware;
|
|
|
|
|
in
|
2023-02-23 20:34:35 +01:00
|
|
|
|
{
|
2023-02-27 16:57:43 +01:00
|
|
|
|
imports = with nixos-hardware.nixosModules;
|
2023-02-24 17:34:42 +01:00
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
2023-02-27 16:57:43 +01:00
|
|
|
|
common-cpu-intel
|
|
|
|
|
common-gpu-nvidia
|
|
|
|
|
common-pc
|
|
|
|
|
common-pc-ssd
|
2023-02-24 17:34:42 +01:00
|
|
|
|
];
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
2023-02-27 16:57:43 +01:00
|
|
|
|
hardware.nvidia.prime = {
|
|
|
|
|
offload.enable = false;
|
|
|
|
|
sync.enable = false;
|
|
|
|
|
|
|
|
|
|
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
|
|
|
|
|
|
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-24 17:34:42 +01:00
|
|
|
|
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/99a47ace-7e69-4520-b914-d4fe5b31dc79";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot/efi" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/1F26-8168";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "/dev/disk/by-uuid/78d6db21-b823-4ca4-b495-7782d3e56ddc";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
2023-02-24 17:34:42 +01:00
|
|
|
|
# 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.wlo1.useDHCP = lib.mkDefault true;
|
2023-02-23 20:34:35 +01:00
|
|
|
|
|
2023-02-24 17:34:42 +01:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2023-02-23 20:34:35 +01:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|