From 6b81b6daa13c075fc9e1d442af15058856a33e6e Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Fri, 1 Aug 2025 11:39:21 -0400 Subject: [PATCH] update hw config, add additional mount options, and add Git to Drone --- hosts/Drone/default.nix | 26 ++++++++++++++++++++++---- hosts/Drone/hardware-configuration.nix | 19 ++++++++++++------- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/hosts/Drone/default.nix b/hosts/Drone/default.nix index 917cc02..f8fd16b 100644 --- a/hosts/Drone/default.nix +++ b/hosts/Drone/default.nix @@ -11,17 +11,35 @@ ../../modules/nixos/bash.nix ]; + + fileSystems = { + "/".options = [ "compress=zstd" ]; + "/home".options = [ "compress=zstd" ]; + "/nix".options = [ "compress=zstd" "noatime" ]; + "/swap".options = [ "noatime" ]; + }; - swapDevices = [{ - device = "/swap/swapfile"; - size = 8*1024; + swapDevices = [{ + device = "/swap/swapfile"; + size = 8192; }]; networking.hostName = "${hostName}"; environment.defaultPackages = lib.mkForce []; + + programs.git = { + enable = true; + config = { + user = { + name = "wo2wz"; + email = "189177184+wo2wz@users.noreply.github.com"; + }; + safe.directory = "/etc/nixos"; + }; + }; services.scx.scheduler = lib.mkForce "scx_rusty"; system.stateVersion = "25.05"; -} \ No newline at end of file +} diff --git a/hosts/Drone/hardware-configuration.nix b/hosts/Drone/hardware-configuration.nix index 490a255..86fbc11 100644 --- a/hosts/Drone/hardware-configuration.nix +++ b/hosts/Drone/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -19,18 +19,23 @@ options = [ "subvol=root" ]; }; - fileSystems."/home" = - { device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - fileSystems."/nix" = { device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5"; fsType = "btrfs"; options = [ "subvol=nix" ]; }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/D867-8F68"; + fsType = "vfat"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/5d75c750-e4b9-4e52-95e1-f397f2c763f5"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + fileSystems."/swap" = { device = "/dev/disk/by-uuid/b909336e-abc4-4b5e-acc4-eac05f6c6148"; fsType = "btrfs";