Skip to content

Commit

Permalink
Add custom packages
Browse files Browse the repository at this point in the history
Enable custom packages in the config and test this out with zluda
(downgrading rocm from 6 to 5!).
The packages are then made available through overlays (see next commit
with big overhaul).
  • Loading branch information
arunoruto committed Oct 18, 2024
1 parent 3019271 commit 397ae7a
Show file tree
Hide file tree
Showing 7 changed files with 2,515 additions and 12 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
};
});

packages = import ./packages nixpkgs.legacyPackages.${system};
packages.${system} = import ./pkgs nixpkgs.legacyPackages.${system};

devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
Expand Down
13 changes: 6 additions & 7 deletions modules/nixos/environment/amd/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
pkgs,
config,
lib,
...
{ pkgs
, config
, lib
, ...
}: {
imports = [
./rocm.nix
Expand All @@ -14,10 +13,10 @@
config = lib.mkIf config.amd.enable {
amd = {
rocm.enable = lib.mkDefault false;
zluda.enable = lib.mkDefault false;
zluda.enable = lib.mkDefault true;
};

services.xserver.videoDrivers = ["amdgpu"];
services.xserver.videoDrivers = [ "amdgpu" ];

environment.systemPackages = with pkgs; [
amdgpu_top
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/environment/amd/zluda.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

config = lib.mkIf config.amd.zluda.enable {
environment.systemPackages = with pkgs; [
zluda
zluda-rocm5
];

# systemd.tmpfiles.rules = let
Expand Down
3 changes: 0 additions & 3 deletions packages/default.nix

This file was deleted.

3 changes: 3 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pkgs: {
zluda-rocm5 = pkgs.callPackage ./zluda-rocm5/package.nix { };
}
Loading

0 comments on commit 397ae7a

Please sign in to comment.