mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +00:00
ef176dcf7e
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
# GNOME Settings Daemon
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.gnome.gnome-settings-daemon;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
|
|
imports = [
|
|
(mkRemovedOptionModule
|
|
["services" "gnome3" "gnome-settings-daemon" "package"]
|
|
"")
|
|
|
|
# Added 2021-05-07
|
|
(mkRenamedOptionModule
|
|
[ "services" "gnome3" "gnome-settings-daemon" "enable" ]
|
|
[ "services" "gnome" "gnome-settings-daemon" "enable" ]
|
|
)
|
|
];
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome.gnome-settings-daemon = {
|
|
|
|
enable = mkEnableOption (lib.mdDoc "GNOME Settings Daemon");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [
|
|
pkgs.gnome.gnome-settings-daemon
|
|
];
|
|
|
|
services.udev.packages = [
|
|
pkgs.gnome.gnome-settings-daemon
|
|
];
|
|
|
|
systemd.packages = [
|
|
pkgs.gnome.gnome-settings-daemon
|
|
];
|
|
|
|
systemd.user.targets."gnome-session-x11-services".wants = [
|
|
"org.gnome.SettingsDaemon.XSettings.service"
|
|
];
|
|
|
|
systemd.user.targets."gnome-session-x11-services-ready".wants = [
|
|
"org.gnome.SettingsDaemon.XSettings.service"
|
|
];
|
|
|
|
};
|
|
|
|
}
|