labby
This commit is contained in:
parent
4908d4d340
commit
cf1927b161
2 changed files with 33 additions and 0 deletions
10
flake.nix
10
flake.nix
|
|
@ -33,6 +33,16 @@
|
||||||
./modules/virtualization.nix
|
./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
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
23
systems/labby.nix
Executable file
23
systems/labby.nix
Executable file
|
|
@ -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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue