This repository has no description
1.2 kB
49 lines
1{ config, lib, 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.zfs.enableUnstable = true;
11 boot.loader.efi.canTouchEfiVariables = true;
12 boot.loader.grub = {
13 enable = true;
14 # device = "/dev/disk/by-id/nvme-WDC_PC_SN730_SDBQNTY-1T00-1001_205349800040";
15 device = "nodev";
16 efiSupport = true;
17 # efiInstallAsRemovable = true;
18 };
19
20 services.xserver.videoDrivers = [
21 "amdgpu"
22 ];
23
24 boot.initrd.kernelModules = [ "amdgpu" ];
25
26 hardware.opengl.extraPackages = [ pkgs.amdvlk ];
27 hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
28
29 boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
30 boot.kernelModules = [ "kvm-amd" ];
31
32 fileSystems."/" = {
33 device = "zpool/root/root";
34 fsType = "zfs";
35 };
36
37 fileSystems."/home" = {
38 device = "zpool/root/home";
39 fsType = "zfs";
40 };
41
42 fileSystems."/boot" = {
43 device = "/dev/disk/by-uuid/50A7-1889";
44 fsType = "vfat";
45 };
46
47 services.logind.lidSwitch = "ignore";
48 services.logind.lidSwitchDocked = "ignore";
49}