diff --git a/hosts/desktop.nix b/hosts/desktop.nix new file mode 100644 index 0000000..18a55da --- /dev/null +++ b/hosts/desktop.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not_detected") + ]; + + boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"]; + boot.kernelModules = ["kvm-amd"]; + + fileSystems."/" = { + device = "/dev/disk/by-label/NIXROOT"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/NIXBOOT"; + fsType = "vfat"; + options = ["fmask=0022 dmask=0022"]; + }; + + swapDevices = []; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/hosts/thinkpad.nix b/hosts/thinkpad.nix index 2b6cc57..ee0d109 100644 --- a/hosts/thinkpad.nix +++ b/hosts/thinkpad.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, modulesPath, ... }: {