From fe8f38c42bc2a9eb816ed0f43341807dc764614a Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 31 Jul 2024 11:51:04 -0400 Subject: [PATCH] Added hl-terra1 complete config --- hosts/hl-terra1.hardware-configuration.nix | 39 ++++++++++++++++++++++ hosts/hl-terra1.nix | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 hosts/hl-terra1.hardware-configuration.nix diff --git a/hosts/hl-terra1.hardware-configuration.nix b/hosts/hl-terra1.hardware-configuration.nix new file mode 100644 index 0000000..a044ede --- /dev/null +++ b/hosts/hl-terra1.hardware-configuration.nix @@ -0,0 +1,39 @@ +# 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, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "uas" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a3b275b4-96d4-4eb4-b01f-d80370899791"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/AAA7-BCE9"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + # 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s21f0u5.useDHCP = lib.mkDefault true; + # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/hl-terra1.nix b/hosts/hl-terra1.nix index 3507bb6..9a802bc 100644 --- a/hosts/hl-terra1.nix +++ b/hosts/hl-terra1.nix @@ -1,6 +1,6 @@ { user }: { pkgs, lib, config, ... }: { - imports = [ ./hl-minipc2.hardware-configuration.nix ]; + imports = [ ./hl-terra1.hardware-configuration.nix ]; # firmware updater services.fwupd.enable = true; # Bootloader.