This repository has no description
1.2 kB
55 lines
1{ pkgs, modulesPath, ... }:
2{
3 imports = [
4 ./config.nix
5 (modulesPath + "/installer/scan/not-detected.nix")
6 ];
7
8 networking.hostId = "e0c335ea";
9 boot.zfs.requestEncryptionCredentials = true;
10 boot.loader.efi.canTouchEfiVariables = true;
11 boot.loader.grub = {
12 enable = true;
13 # device = "/dev/disk/by-id/nvme-WDC_PC_SN730_SDBQNTY-1T00-1001_205349800040";
14 device = "nodev";
15 efiSupport = true;
16 # efiInstallAsRemovable = true;
17 };
18
19 services.xserver.videoDrivers = [
20 "amdgpu"
21 ];
22
23 boot.initrd.kernelModules = [ "amdgpu" ];
24
25 hardware.opengl.extraPackages = [ pkgs.amdvlk ];
26 hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
27
28 boot.initrd.availableKernelModules = [
29 "nvme"
30 "ehci_pci"
31 "xhci_pci"
32 "usb_storage"
33 "sd_mod"
34 "rtsx_pci_sdmmc"
35 ];
36 boot.kernelModules = [ "kvm-amd" ];
37
38 fileSystems."/" = {
39 device = "zpool/root/root";
40 fsType = "zfs";
41 };
42
43 fileSystems."/home" = {
44 device = "zpool/root/home";
45 fsType = "zfs";
46 };
47
48 fileSystems."/boot" = {
49 device = "/dev/disk/by-uuid/50A7-1889";
50 fsType = "vfat";
51 };
52
53 services.logind.lidSwitch = "ignore";
54 services.logind.lidSwitchDocked = "ignore";
55}