diff --git a/modules/home/default.nix b/modules/home/default.nix index c8183cf..a05a1d1 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -28,6 +28,7 @@ ./mpv ./nix ./nix-index + ./nixgl ./nixpkgs ./nm-applet ./packages diff --git a/modules/home/nixgl/default.nix b/modules/home/nixgl/default.nix new file mode 100644 index 0000000..1f03a26 --- /dev/null +++ b/modules/home/nixgl/default.nix @@ -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; + }; + } + ]); +}