From f5a1181267e38b3fef5a90c96318c244b5819809 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 31 Oct 2024 14:14:59 +0000 Subject: [PATCH] home: add 'nixgl' --- modules/home/default.nix | 1 + modules/home/nixgl/default.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/home/nixgl/default.nix 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; + }; + } + ]); +}