diff --git a/hosts/default.nix b/hosts/default.nix index 7a55e02..dc03b3b 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -92,10 +92,11 @@ in ]; }; - # future you: - # atlas = mkHost { - # hostName = "atlas"; - # system = "x86_64-linux"; - # extraModules = [ ./atlas-hardware.nix ./atlas-role-server.nix ]; - # }; + nix-desktop1 = mkHost { + hostName = "nix-desktop1"; + system = "x86_64-linux"; + extraModules = [ + ./nix-desktop.nix + ]; + }; } diff --git a/hosts/nix-desktop.nix b/hosts/nix-desktop.nix new file mode 100644 index 0000000..ddc99b6 --- /dev/null +++ b/hosts/nix-desktop.nix @@ -0,0 +1,23 @@ +{ config, lib, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + boot.kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "udev.log_priority=3" + "rd.systemd.show_status=auto" + ]; + + disko.devices.disk.main.content.partitions.swap.size = lib.mkOverride "16G"; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}