home: add 'nixgl'
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This commit is contained in:
Bruno BELANYI 2024-10-31 14:14:59 +00:00
parent 05b0a450be
commit f5a1181267
2 changed files with 18 additions and 0 deletions

View file

@ -28,6 +28,7 @@
./mpv ./mpv
./nix ./nix
./nix-index ./nix-index
./nixgl
./nixpkgs ./nixpkgs
./nm-applet ./nm-applet
./packages ./packages

View file

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