Satori: misc changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-10-14 09:57:57 +05:30
parent c9879b147d
commit 994a22a6da
6 changed files with 41 additions and 29 deletions

View File

@@ -2,6 +2,8 @@
{
boot = {
zfs.forceImportAll = false;
supportedFilesystems = [ "zfs" ];
kernelPackages = pkgs.unstable.linuxPackages_latest;
initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci" ];

View File

@@ -5,30 +5,36 @@
[
(modulesPath + "/installer/scan/not-detected.nix")
];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
{ device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
fsType = "btrfs";
options = [ "compress-force=zstd:3" ];
};
fileSystems."/boot/efi" =
{
device = "/dev/disk/by-uuid/2424-5639";
{ device = "/dev/disk/by-uuid/2424-5639";
fsType = "vfat";
};
fileSystems."/mnt/Games" =
{
device = "/dev/disk/by-uuid/A4CC66B6CC668282";
fileSystems."/mnt/ntfs" =
{ device = "/dev/disk/by-uuid/A4CC66B6CC668282";
fsType = "ntfs";
options = [ "uid=natto" "gid=users" "umask=0022" "rw" ];
};
fileSystems."/mnt/Stuff" =
{
device = "/dev/disk/by-uuid/e5be3621-8608-4ffe-bd33-5e6d22fef4ff";
fsType = "btrfs";
options = [ "compress-force=zstd:3" ];
fileSystems."/mnt/real" =
{ device = "/dev/disk/by-uuid/6372bc0c-0917-469d-a845-2ce65513e306";
fsType = "ext4";
options = [ "rw" ];
};
fileSystems."/mnt/stuff" =
{ device = "stuff";
fsType = "zfs";
neededForBoot = false;
};
zramSwap = {
enable = true;
algorithm = "lz4";

View File

@@ -3,12 +3,18 @@
{
networking = {
hostName = "Satori";
hostId = "beca3df0";
wireless.enable = true;
wireless.interfaces = [ "wlp0s20f3" ];
firewall = {
allowedTCPPorts = [ 22 18172 6600 8001 ];
allowedUDPPorts = [ 22 17840 18172 ];
};
defaultGateway = {
address = "192.168.0.1";
};
interfaces = {
enp7s0 = {
useDHCP = true;

View File

@@ -29,12 +29,7 @@
vulkan-tools
vulkan-headers
msr-tools
(steam.override {
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'';
})
steam
igrep
];

View File

@@ -13,6 +13,7 @@
udev.extraRules = ''
ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
'';
zfs.autoScrub.enable = true;
};
systemd.services.tor.wantedBy = lib.mkForce [ ];
systemd.enableUnifiedCgroupHierarchy = false;

View File

@@ -22,6 +22,7 @@
};
};
security = {
polkit.enable = true;
sudo.enable = true;
doas = {
enable = true;
@@ -44,6 +45,7 @@
monoid
office-code-pro
hanazono
eb-garamond
# noto-fonts-cjk
];
users.users.natto = {