my nix configs for my servers and desktop

update valefar

Changed files
+23 -7
hosts
+19 -4
hosts/valefar/default.nix
···
# Host-specific hardware
./hardware.nix
./secrets.nix
-
../../common/nvidia.nix
+
#../../common/nvidia.nix
# Common modules shared across hosts
../../common/system.nix
···
services.resolved = {
enable = true;
-
dnssec = "true";
+
dnssec = "false";
domains = [ "~." ];
-
fallbackDns = [ "10.0.0.210" "1.0.0.1#one.one.one.one" ];
-
dnsovertls = "true";
+
fallbackDns = [ "10.0.0.210" "1.1.1.1" ];
+
dnsovertls = "false";
};
boot.supportedFilesystems = [ "zfs" ];
···
boot.zfs.extraPools = [ "garage" "storage" ];
boot.zfs.devNodes = "/dev/disk/by-id";
boot.zfs.forceImportAll = true;
+
+
/*boot.kernelParams = [ "ip=dhcp" ];
+
boot.initrd = {
+
availableKernelModules = [ "r8169" ];
+
network = {
+
enable = true;
+
ssh = {
+
enable = true;
+
port = 22;
+
authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ0pU82lV9dSjkgYbdh9utZ5CDM2dPN70S5fBqN1m3Pb" ];
+
hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ];
+
shell = "/bin/cryptsetup-askpass";
+
};
+
};
+
};*/
systemd.services.zfs-import-cache.enable = false;
systemd.services.zfs-import-scan.enable = true;
+4 -3
hosts/valefar/hardware.nix
···
[ (modulesPath + "/installer/scan/not-detected.nix")
];
-
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
+
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "mpt3sas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
-
boot.kernelModules = [ "kvm-intel" ];
+
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
···
# Fan Control
hardware.fancontrol = {
-
enable = true;
+
enable = false;
config = ''
INTERVAL=10
DEVPATH=hwmon1=devices/platform/nct6775.2592 hwmon2=devices/platform/coretemp.0
···
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
+
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
}