summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/by-name/dc/dconf/module.nix21
-rw-r--r--modules/common/soispha/default.nix1
2 files changed, 17 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
diff --git a/modules/common/soispha/default.nix b/modules/common/soispha/default.nix
index 07982fd6..e9f4850f 100644
--- a/modules/common/soispha/default.nix
+++ b/modules/common/soispha/default.nix
@@ -55,6 +55,7 @@
soispha = {
services = {
mpdpopm.enable = true;
+ dconf.enable = true;
ollama.enable = true;