feat: Add desktop nix-desktop1

This commit is contained in:
2025-12-04 10:28:05 -05:00
committed by Hunter Halloran
parent eaee8c652e
commit 5b4f8dd2df
2 changed files with 30 additions and 6 deletions

View File

@@ -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
];
};
}

23
hosts/nix-desktop.nix Normal file
View File

@@ -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;
}