diff options
author | José Romildo <malaquias@gmail.com> | 2022-06-26 13:54:59 -0300 |
---|---|---|
committer | José Romildo <malaquias@gmail.com> | 2022-06-26 14:29:01 -0300 |
commit | d18aeb6351482911fc63cb086ca49d20acabc4d0 (patch) | |
tree | 1a22d02c6436a2627ad682d8bf1702244b259d44 /nixos/modules/programs | |
parent | c7c3c6586cb7328bed8872b89e2c85f78ca4ae38 (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.nix | 3 | ||||
-rw-r--r-- | nixos/modules/programs/xfconf.nix | 27 |
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 + ]; + }; +} |