-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
45 lines (37 loc) · 1005 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ pkgs, lib, config, ... }:
{
imports = [
../../profiles/base
../../profiles/common
../../profiles/nixos
../../profiles/home-manager
../../users/sandhose/nixos-gui.nix
../../users/root/nixos.nix
];
boot.initrd.availableKernelModules =
[ "xhci_pci" "ehci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" /* "r8125" */ ];
# boot.extraModulePackages = [ config.boot.kernelPackages.r8125 ];
networking = {
hostName = "sandhose-desktop";
hostId = "f61bc842";
};
fileSystems."/" = {
device = "/dev/disk/by-partlabel/root";
fsType = "xfs";
};
fileSystems."/home" = {
device = "rpool/safe/home";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/efi";
fsType = "vfat";
};
swapDevices = [{
device = "/swapfile";
size = 32768;
}];
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
}