about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorJosé Romildo <malaquias@gmail.com>2022-06-26 13:54:59 -0300
committerJosé Romildo <malaquias@gmail.com>2022-06-26 14:29:01 -0300
commitd18aeb6351482911fc63cb086ca49d20acabc4d0 (patch)
tree1a22d02c6436a2627ad682d8bf1702244b259d44 /nixos/modules/programs
parentc7c3c6586cb7328bed8872b89e2c85f78ca4ae38 (diff)
nixos/xfconf: init
- Add a module for xfconf, the Xfce configuration storage system.
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/thunar.nix3
-rw-r--r--nixos/modules/programs/xfconf.nix27
2 files changed, 29 insertions, 1 deletions
diff --git a/nixos/modules/programs/thunar.nix b/nixos/modules/programs/thunar.nix
index 343f84698672a..5ea2982dd93cf 100644
--- a/nixos/modules/programs/thunar.nix
+++ b/nixos/modules/programs/thunar.nix
@@ -33,12 +33,13 @@ in {
 
       services.dbus.packages = [
         package
-        pkgs.xfce.xfconf
       ];
 
       systemd.packages = [
         package
       ];
+
+      programs.xfconf.enable = true;
     }
   );
 }
diff --git a/nixos/modules/programs/xfconf.nix b/nixos/modules/programs/xfconf.nix
new file mode 100644
index 0000000000000..8e854b40e513d
--- /dev/null
+++ b/nixos/modules/programs/xfconf.nix
@@ -0,0 +1,27 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let cfg = config.programs.xfconf;
+
+in {
+  meta = {
+    maintainers = teams.xfce.members;
+  };
+
+  options = {
+    programs.xfconf = {
+      enable = mkEnableOption "Xfconf, the Xfce configuration storage system";
+    };
+  };
+
+  config = mkIf cfg.enable {
+    environment.systemPackages = [
+      pkgs.xfce.xfconf
+    ];
+
+    services.dbus.packages = [
+      pkgs.xfce.xfconf
+    ];
+  };
+}