Skip to content

Commit

Permalink
feat: add igpu profile #300
Browse files Browse the repository at this point in the history
  • Loading branch information
truxnell authored Aug 27, 2024
1 parent bd1d3f4 commit b8e280b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
];
profileModules = [
./nixos/profiles/role-server.nix
./nixos/profiles/hw-intel-igpu.nix
{ home-manager.users.truxnell = ./nixos/home/truxnell/server.nix; }
];
};
Expand All @@ -237,6 +238,7 @@
system = "x86_64-linux";
hardwareModules = [
./nixos/profiles/hw-generic-x86.nix
./nixos/profiles/hw-intel-igpu.nix
];
profileModules = [
./nixos/profiles/role-server.nix
Expand All @@ -255,19 +257,14 @@
];
profileModules = [
./nixos/profiles/role-server.nix
./nixos/profiles/hw-intel-igpu.nix
{ home-manager.users.truxnell = ./nixos/home/truxnell/server.nix; }
];
};





};




# # nix build .#images.rpi4
# rpi4 = nixpkgs.lib.nixosSystem {
# inherit specialArgs;
Expand Down
19 changes: 19 additions & 0 deletions nixos/profiles/hw-intel-gpu.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ config, lib, pkgs, imports, boot, ... }:

with lib;
{

# Enable intel igpu
boot.kernelParams = [
"i915.enable_guc=2"
];

hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-compute-runtime
];
};

}

0 comments on commit b8e280b

Please sign in to comment.