summaryrefslogtreecommitdiffstats
path: root/modules/by-name/dc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/dc')
-rw-r--r--modules/by-name/dc/dconf/module.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/modules/by-name/dc/dconf/module.nix b/modules/by-name/dc/dconf/module.nix
index ec055a6f..78d34546 100644
--- a/modules/by-name/dc/dconf/module.nix
+++ b/modules/by-name/dc/dconf/module.nix
@@ -7,11 +7,22 @@
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-{...}: {
- # needed to make home-manager play nice with some apps. See:
- # https://nix-community.github.io/home-manager/index.xhtml#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
- programs.dconf.enable = true;
- # FIXME: This should also be parameterized. <2024-05-16>
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.soispha.services.dconf;
+in {
+ options.soispha.services.dconf = {
+ enable = lib.mkEnableOption "dconf";
+ };
+
+ config = lib.mkIf cfg.enable {
+ # needed to make home-manager play nice with some apps. See:
+ # https://nix-community.github.io/home-manager/index.xhtml#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
+ programs.dconf.enable = true;
+ };
}
# vim: nolinebreak nowrap textwidth=0