50 lines
1.2 KiB
Nix
50 lines
1.2 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, ... }:
|
||
|
||
let unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
||
in {
|
||
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"xhci_pci"
|
||
"ehci_pci"
|
||
"ahci"
|
||
"usbhid"
|
||
"usb_storage"
|
||
"sd_mod"
|
||
"rtsx_pci_sdmmc"
|
||
];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" = {
|
||
device = "cube/root/nixos";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "cube/home";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/2AD7-4F18";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
nix.maxJobs = lib.mkDefault 4;
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||
|
||
# custom
|
||
boot.loader.systemd-boot.enable = true;
|
||
networking.hostId = "ef3a5d57";
|
||
networking.hostName = "discovery";
|
||
powerManagement.powertop.enable = true;
|
||
services.tlp.enable = true;
|
||
|
||
}
|