nixos-config/system/rainbowdash/hardware-configuration.nix

49 lines
1.2 KiB
Nix
Raw Permalink Normal View History

# 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.
2024-03-02 03:13:17 +00:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
2023-08-26 23:00:18 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-03-02 03:13:17 +00:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-08-26 23:00:18 +00:00
fileSystems."/" = {
device = "/dev/mapper/rainbowdash-root";
fsType = "btrfs";
options = [ "subvol=root" ];
};
2023-08-26 23:00:18 +00:00
fileSystems."/home" = {
device = "/dev/mapper/rainbowdash-root";
fsType = "btrfs";
options = [ "subvol=home" ];
};
2023-08-26 23:00:18 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/642D-02DF";
fsType = "vfat";
};
2024-03-02 03:13:17 +00:00
swapDevices = [ { device = "/dev/disk/by-uuid/289be8e5-6547-41d4-a6ba-309141f9fccd"; } ];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
# High-DPI console
2024-03-02 03:13:17 +00:00
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
}