~jb55/citadel

ref: 049caa61c6c679336b329a8628444993af608dab citadel/nix-config/machines/monad/hardware/default.nix -rw-r--r-- 1.6 KiB
049caa61William Casarin custom.el: updates 1 year, 1 month ago
                                                                                
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ config, lib, pkgs, ... }:
{
  # fileSystems."/" =
  #   { device = "/dev/disk/by-uuid/62518649-0872-49e2-a269-34975e314c6a";
  #     fsType = "ext4";
  #   };

  # fileSystems."/" =
  #   { device = "/dev/nvme0n1p1";
  #     fsType = "zfs";
  #nixos-generate-config --root /mnt   };

  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
  boot.kernelParams = [ "amdgpu.gpu_recovery=1" ];
  boot.kernelModules = [ "kvm-amd" ];
  boot.loader.grub.copyKernels = true;
  boot.extraModulePackages = [ ];

  fileSystems."/" =
    { device = "znix/root/nixos";
      fsType = "zfs";
    };

  fileSystems."/home" =
    { device = "znix/home";
      fsType = "zfs";
    };

  fileSystems."/zbig" =
    { device = "zbig";
      fsType = "zfs";
    };

  #fileSystems."/vr" =
  # { device = "/dev/disk/by-uuid/E234A89834A87169";
  #   fsType = "ntfs";
  # };

  #fileSystems."/sand" =
  #  { device = "/dev/disk/by-uuid/2ee709b8-7e83-470f-91bc-d0b0ba59b945";
  #    fsType = "ext4";
  #  };

  # fileSystems."/home/jb55/shares/will-vm/projects" =
  #   { device = "//192.168.86.199/Users/jb55/projects";
  #     fsType = "cifs";
  #     options = ["username=jb55" "password=notsecurepw" "gid=100" "uid=1000"];
  #   };

  #fileSystems."/home/jb55/.local/share/Steam/steamapps" =
  #  { device = "/sand/data/SteamAppsLinux";
  #    fsType = "none";
  #    options = ["bind"];
  #  };

  # swapDevices =
  #   [ { device = "/dev/disk/by-uuid/d4e4ae51-9179-439d-925b-8df42dd1bfc5"; }
  #   ];

  hardware.enableAllFirmware = true;

  boot.loader.grub.devices = [ "/dev/nvme0n1" ];
  boot.supportedFilesystems = ["zfs"];
}