diff --git a/flake.nix b/flake.nix index 4378c99..8e1df2b 100755 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,16 @@ ./modules/virtualization.nix ]; }; + labby = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./systems/common.nix + ./systems/labby.nix + ./users/jsutter.nix + ./modules/plasma.nix + ./modules/dev.nix + ]; + }; }; }; } diff --git a/systems/labby.nix b/systems/labby.nix new file mode 100755 index 0000000..b148d41 --- /dev/null +++ b/systems/labby.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + networking.hostName = "labby"; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + services.xserver.videoDrivers = [ ]; + + hardware.opengl.extraPackages = with pkgs; [ + rocm-opencl-icd + rocm-opencl-runtime + ]; + + hardware.opengl.driSupport = true; + hardware.opengl.driSupport32Bit = true; +}