Satori: misc changes
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -2,6 +2,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  boot = {
 | 
					  boot = {
 | 
				
			||||||
 | 
					    zfs.forceImportAll = false;
 | 
				
			||||||
 | 
					    supportedFilesystems = [ "zfs" ];
 | 
				
			||||||
    kernelPackages = pkgs.unstable.linuxPackages_latest;
 | 
					    kernelPackages = pkgs.unstable.linuxPackages_latest;
 | 
				
			||||||
    initrd = {
 | 
					    initrd = {
 | 
				
			||||||
      availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci" ];
 | 
					      availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci" ];
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,30 +5,36 @@
 | 
				
			|||||||
    [
 | 
					    [
 | 
				
			||||||
      (modulesPath + "/installer/scan/not-detected.nix")
 | 
					      (modulesPath + "/installer/scan/not-detected.nix")
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fileSystems."/" =
 | 
					  fileSystems."/" =
 | 
				
			||||||
    {
 | 
					    { device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
 | 
				
			||||||
      device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
 | 
					 | 
				
			||||||
      fsType = "btrfs";
 | 
					      fsType = "btrfs";
 | 
				
			||||||
      options = [ "compress-force=zstd:3" ];
 | 
					      options = [ "compress-force=zstd:3" ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fileSystems."/boot/efi" =
 | 
					  fileSystems."/boot/efi" =
 | 
				
			||||||
    {
 | 
					    { device = "/dev/disk/by-uuid/2424-5639";
 | 
				
			||||||
      device = "/dev/disk/by-uuid/2424-5639";
 | 
					 | 
				
			||||||
      fsType = "vfat";
 | 
					      fsType = "vfat";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  fileSystems."/mnt/Games" =
 | 
					
 | 
				
			||||||
    {
 | 
					  fileSystems."/mnt/ntfs" =
 | 
				
			||||||
      device = "/dev/disk/by-uuid/A4CC66B6CC668282";
 | 
					    { device = "/dev/disk/by-uuid/A4CC66B6CC668282";
 | 
				
			||||||
      fsType = "ntfs";
 | 
					      fsType = "ntfs";
 | 
				
			||||||
      options = [ "uid=natto" "gid=users" "umask=0022" "rw" ];
 | 
					      options = [ "uid=natto" "gid=users" "umask=0022" "rw" ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  fileSystems."/mnt/Stuff" =
 | 
					
 | 
				
			||||||
    {
 | 
					  fileSystems."/mnt/real" =
 | 
				
			||||||
      device = "/dev/disk/by-uuid/e5be3621-8608-4ffe-bd33-5e6d22fef4ff";
 | 
					    { device = "/dev/disk/by-uuid/6372bc0c-0917-469d-a845-2ce65513e306";
 | 
				
			||||||
      fsType = "btrfs";
 | 
					      fsType = "ext4";
 | 
				
			||||||
      options = [ "compress-force=zstd:3" ];
 | 
					      options = [ "rw" ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  fileSystems."/mnt/stuff" =
 | 
				
			||||||
 | 
					    { device = "stuff";
 | 
				
			||||||
 | 
					      fsType = "zfs";
 | 
				
			||||||
 | 
					      neededForBoot = false;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  zramSwap = {
 | 
					  zramSwap = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    algorithm = "lz4";
 | 
					    algorithm = "lz4";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,12 +3,18 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  networking = {
 | 
					  networking = {
 | 
				
			||||||
    hostName = "Satori";
 | 
					    hostName = "Satori";
 | 
				
			||||||
 | 
					    hostId = "beca3df0";
 | 
				
			||||||
    wireless.enable = true;
 | 
					    wireless.enable = true;
 | 
				
			||||||
    wireless.interfaces = [ "wlp0s20f3" ];
 | 
					    wireless.interfaces = [ "wlp0s20f3" ];
 | 
				
			||||||
    firewall = {
 | 
					    firewall = {
 | 
				
			||||||
      allowedTCPPorts = [ 22 18172 6600 8001 ];
 | 
					      allowedTCPPorts = [ 22 18172 6600 8001 ];
 | 
				
			||||||
      allowedUDPPorts = [ 22 17840 18172 ];
 | 
					      allowedUDPPorts = [ 22 17840 18172 ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    defaultGateway = {
 | 
				
			||||||
 | 
					      address = "192.168.0.1";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    interfaces = {
 | 
					    interfaces = {
 | 
				
			||||||
      enp7s0 = {
 | 
					      enp7s0 = {
 | 
				
			||||||
        useDHCP = true;
 | 
					        useDHCP = true;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,12 +29,7 @@
 | 
				
			|||||||
    vulkan-tools
 | 
					    vulkan-tools
 | 
				
			||||||
    vulkan-headers
 | 
					    vulkan-headers
 | 
				
			||||||
   msr-tools
 | 
					   msr-tools
 | 
				
			||||||
    (steam.override {
 | 
					   steam  
 | 
				
			||||||
      extraLibraries = pkgs: [ pkgs.pipewire ];
 | 
					 | 
				
			||||||
      extraProfile = ''
 | 
					 | 
				
			||||||
        unset VK_ICD_FILENAMES
 | 
					 | 
				
			||||||
        export VK_ICD_FILENAMES=${config.hardware.nvidia.package}/share/vulkan/icd.d/nvidia_icd.json:${config.hardware.nvidia.package.lib32}/share/vulkan/icd.d/nvidia_icd32.json'';
 | 
					 | 
				
			||||||
    })
 | 
					 | 
				
			||||||
    igrep
 | 
					    igrep
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,6 +13,7 @@
 | 
				
			|||||||
    udev.extraRules = ''
 | 
					    udev.extraRules = ''
 | 
				
			||||||
      ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
 | 
					      ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
 | 
				
			||||||
    '';
 | 
					    '';
 | 
				
			||||||
 | 
					    zfs.autoScrub.enable = true;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  systemd.services.tor.wantedBy = lib.mkForce [ ];
 | 
					  systemd.services.tor.wantedBy = lib.mkForce [ ];
 | 
				
			||||||
  systemd.enableUnifiedCgroupHierarchy = false;
 | 
					  systemd.enableUnifiedCgroupHierarchy = false;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,6 +22,7 @@
 | 
				
			|||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  security = {
 | 
					  security = {
 | 
				
			||||||
 | 
					    polkit.enable = true;
 | 
				
			||||||
    sudo.enable = true;
 | 
					    sudo.enable = true;
 | 
				
			||||||
    doas = {
 | 
					    doas = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
@@ -44,6 +45,7 @@
 | 
				
			|||||||
    monoid
 | 
					    monoid
 | 
				
			||||||
    office-code-pro
 | 
					    office-code-pro
 | 
				
			||||||
    hanazono
 | 
					    hanazono
 | 
				
			||||||
 | 
					    eb-garamond
 | 
				
			||||||
 #   noto-fonts-cjk
 | 
					 #   noto-fonts-cjk
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  users.users.natto = {
 | 
					  users.users.natto = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user