my nix configs for my servers and desktop

fix buer

Changed files
+29 -45
hosts
+3
hosts/buer/default.nix
···
hardware.cpu.intel.updateMicrocode = lib.mkDefault
config.hardware.enableRedistributableFirmware;
+
boot.loader.grub.enable = true;
+
boot.loader.grub.device = "/dev/vda";
+
networking.hostName = "buer";
networking.hostId = "1418d29e";
networking.useDHCP = false;
+26 -45
hosts/buer/hardware.nix
···
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
-
{ config, lib, pkgs, modulesPath, ... }:
+
{
+
config,
+
lib,
+
pkgs,
+
modulesPath,
+
...
+
}:
{
-
imports =
-
[ (modulesPath + "/installer/scan/not-detected.nix")
-
];
+
imports = [
+
(modulesPath + "/profiles/qemu-guest.nix")
+
];
-
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "uas" "sd_mod" ];
+
boot.initrd.availableKernelModules = [
+
"ata_piix"
+
"uhci_hcd"
+
"virtio_pci"
+
"sr_mod"
+
"virtio_blk"
+
];
boot.initrd.kernelModules = [ ];
-
boot.kernelModules = [ "kvm-intel" ];
+
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
-
device = "/dev/disk/by-uuid/17b399da-2210-4493-9ae3-c65b20b992a0";
+
device = "/dev/disk/by-uuid/07478c87-a96d-4665-b7e7-2736e9748fd6";
fsType = "ext4";
};
-
fileSystems."/boot" =
-
{ device = "/dev/disk/by-uuid/6340-211B";
-
fsType = "vfat";
-
options = [ "fmask=0022" "dmask=0022" ];
-
};
-
-
fileSystems."/garage" = {
-
device = "garage";
-
fsType = "zfs";
-
};
-
-
fileSystems."/storage" = {
-
device = "storage";
-
fsType = "zfs";
-
};
-
-
swapDevices = [ ];
-
-
# Fan Control
-
hardware.fancontrol = {
-
enable = true;
-
config = ''
-
INTERVAL=10
-
DEVPATH=hwmon1=devices/platform/nct6775.2592 hwmon2=devices/platform/coretemp.0
-
DEVNAME=hwmon1=nct6795 hwmon2=coretemp
-
FCTEMPS=hwmon1/pwm2=hwmon2/temp1_input hwmon1/pwm3=hwmon2/temp1_input
-
FCFANS=hwmon1/pwm2=hwmon1/fan2_input hwmon1/pwm3=hwmon1/fan3_input
-
MINTEMP=hwmon1/pwm2=20 hwmon1/pwm3=20
-
MAXTEMP=hwmon1/pwm2=65 hwmon1/pwm3=60
-
MINSTART=hwmon1/pwm2=38 hwmon1/pwm3=75
-
MINSTOP=hwmon1/pwm2=28 hwmon1/pwm3=75
-
MINPWM=hwmon1/pwm2=28 hwmon1/pwm3=75
-
MAXPWM=hwmon1/pwm2=150 hwmon1/pwm3=105
-
'';
-
};
+
swapDevices = [
+
{ device = "/dev/disk/by-uuid/2bff92a8-8c12-4190-aed9-5aed7ddf4211"; }
+
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# 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;
-
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
-
}
+
#networking.useDHCP = lib.mkDefault true;
+
# networking.interfaces.ens3.useDHCP = lib.mkDefault true;
+
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+
}