Skip to content

Commit

Permalink
Merge pull request #179220 from romildo/fix.xfconf
Browse files Browse the repository at this point in the history
nixos/xfconf: init
  • Loading branch information
romildo committed Jun 30, 2022
2 parents 7346675 + d18aeb6 commit f72be3a
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 4 deletions.
7 changes: 7 additions & 0 deletions nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@
release it may be removed.
</para>
</listitem>
<listitem>
<para>
There is a new module for the <literal>xfconf</literal>
program (the Xfce configuration storage system), which has a
dbus service.
</para>
</listitem>
</itemizedlist>
</section>
</section>
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2211.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,6 @@ Use `configure.packages` instead.

- There is a new module for the `thunar` program (the Xfce file manager), which depends on the `xfconf` dbus service, and also has a dbus service and a systemd unit. The option `services.xserver.desktopManager.xfce.thunarPlugins` has been renamed to `programs.thunar.plugins`, and in a future release it may be removed.

- There is a new module for the `xfconf` program (the Xfce configuration storage system), which has a dbus service.

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
./programs/weylus.nix
./programs/wireshark.nix
./programs/wshowkeys.nix
./programs/xfconf.nix
./programs/xfs_quota.nix
./programs/xonsh.nix
./programs/xss-lock.nix
Expand Down
3 changes: 2 additions & 1 deletion nixos/modules/programs/thunar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ in {

services.dbus.packages = [
package
pkgs.xfce.xfconf
];

systemd.packages = [
package
];

programs.xfconf.enable = true;
}
);
}
27 changes: 27 additions & 0 deletions nixos/modules/programs/xfconf.nix
Original file line number Diff line number Diff line change
@@ -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
];
};
}
5 changes: 2 additions & 3 deletions nixos/modules/services/x11/desktop-managers/xfce.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ with lib;

let
cfg = config.services.xserver.desktopManager.xfce;
in

in
{

meta = {
maintainers = teams.xfce.members;
};