home: add 'nix-gl'

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

View file

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

View file

@ -0,0 +1,17 @@
{ 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;
};
}
]);
}