47 lines
1.3 KiB
Nix
47 lines
1.3 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" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "tank/work/nixos";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" =
|
||
{ device = "tank/work/home";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/DC7B-5E2D";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
nix.maxJobs = lib.mkDefault 12;
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
|
||
# custom
|
||
boot.kernelPackages = unstable.linuxPackages_latest;
|
||
boot.loader.systemd-boot.enable = true;
|
||
networking.hostId = "eff291c4";
|
||
networking.hostName = "sphere";
|
||
networking.interfaces.enp0s20f0u1.useDHCP = true;
|
||
powerManagement.powertop.enable = true;
|
||
services.tlp.enable = true;
|
||
|
||
}
|