Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
22efa99f5f WIP: nixgl wrappers
All checks were successful
ci/woodpecker/push/check Pipeline was successful
2025-07-22 13:44:32 +00:00
84c49405b6 home: add 'nix-gl' 2025-07-22 13:44:32 +00:00
b4f9db9a67 flake: add 'nixgl'
There's now a home-manager module for it, let's try it out.
2025-07-22 13:44:31 +00:00
4 changed files with 58 additions and 0 deletions

25
flake.lock generated
View file

@ -173,6 +173,30 @@
"type": "github"
}
},
"nixgl": {
"inputs": {
"flake-utils": [
"futils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1752054764,
"narHash": "sha256-Ob/HuUhANoDs+nvYqyTKrkcPXf4ZgXoqMTQoCK0RFgQ=",
"owner": "nix-community",
"repo": "nixGL",
"rev": "a8e1ce7d49a149ed70df676785b07f63288f53c5",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "main",
"repo": "nixGL",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1752644555,
@ -221,6 +245,7 @@
"futils": "futils",
"git-hooks": "git-hooks",
"home-manager": "home-manager",
"nixgl": "nixgl",
"nixpkgs": "nixpkgs",
"nur": "nur",
"systems": "systems"

View file

@ -43,6 +43,17 @@
};
};
nixgl = {
type = "github";
owner = "nix-community";
repo = "nixGL";
ref = "main";
inputs = {
flake-utils.follows = "futils";
nixpkgs.follows = "nixpkgs";
};
};
nixpkgs = {
type = "github";
owner = "NixOS";

View file

@ -28,6 +28,7 @@
./mail
./mpv
./nix
./nix-gl
./nix-index
./nixpkgs
./nm-applet

View file

@ -0,0 +1,21 @@
{ config, inputs, lib, ... }:
let
cfg = config.my.home.nix-gl;
in
{
options.my.home.nix-gl = with lib; {
enable = mkEnableOption "nixGL configuration";
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
nixGL = {
inherit (inputs.nixgl) packages;
defaultWrapper = "mesa";
installScripts = [ "mesa" ];
};
}
]);
}