diff --git a/nixops/nixops.nix b/nixops/nixops.nix index 01604ed..28efaeb 100644 --- a/nixops/nixops.nix +++ b/nixops/nixops.nix @@ -15,4 +15,5 @@ franz = import ./desktop.nix { host = "franz"; }; juno = import ./desktop.nix { host = "juno"; }; demeter = import ./desktop.nix { host = "demeter"; }; + vulcan = import ./desktop.nix { host = "vulcan"; }; } diff --git a/nixops/vulcan-hardware-configuration.nix b/nixops/vulcan-hardware-configuration.nix new file mode 100644 index 0000000..5ba361c --- /dev/null +++ b/nixops/vulcan-hardware-configuration.nix @@ -0,0 +1,40 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/67168ae0-6448-4b40-b278-406290224b4f"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/8F4B-AD84"; + fsType = "vfat"; + }; + + 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.eno1.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + hardware.cpu.intel.updateMicrocode = true; + + system.stateVersion = "23.05"; +}