2019-01-25 17:43:36 +01:00
|
|
|
# GNOME Settings Daemon
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
cfg = config.services.gnome.gnome-settings-daemon;
|
2019-01-25 17:43:36 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2020-04-02 02:16:24 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2019-09-30 00:51:15 +02:00
|
|
|
imports = [
|
|
|
|
(mkRemovedOptionModule
|
|
|
|
["services" "gnome3" "gnome-settings-daemon" "package"]
|
|
|
|
"")
|
2021-05-07 23:18:14 +02:00
|
|
|
|
|
|
|
# Added 2021-05-07
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "gnome-settings-daemon" "enable" ]
|
|
|
|
[ "services" "gnome" "gnome-settings-daemon" "enable" ]
|
|
|
|
)
|
2019-09-30 00:51:15 +02:00
|
|
|
];
|
|
|
|
|
2019-01-25 17:43:36 +01:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
services.gnome.gnome-settings-daemon = {
|
2019-01-25 17:43:36 +01:00
|
|
|
|
2019-04-20 03:41:48 +02:00
|
|
|
enable = mkEnableOption "GNOME Settings Daemon";
|
2019-01-25 17:43:36 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
2019-09-30 00:51:15 +02:00
|
|
|
environment.systemPackages = [
|
2021-05-07 23:18:14 +02:00
|
|
|
pkgs.gnome.gnome-settings-daemon
|
2019-09-30 00:51:15 +02:00
|
|
|
];
|
2019-01-25 17:43:36 +01:00
|
|
|
|
2019-09-30 00:51:15 +02:00
|
|
|
services.udev.packages = [
|
2021-05-07 23:18:14 +02:00
|
|
|
pkgs.gnome.gnome-settings-daemon
|
2019-09-30 00:51:15 +02:00
|
|
|
];
|
2019-01-25 17:43:36 +01:00
|
|
|
|
2019-10-03 03:39:24 +02:00
|
|
|
systemd.packages = [
|
2021-05-07 23:18:14 +02:00
|
|
|
pkgs.gnome.gnome-settings-daemon
|
2019-10-03 03:39:24 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
systemd.user.targets."gnome-session-initialized".wants = [
|
|
|
|
"gsd-color.target"
|
|
|
|
"gsd-datetime.target"
|
|
|
|
"gsd-keyboard.target"
|
|
|
|
"gsd-media-keys.target"
|
|
|
|
"gsd-print-notifications.target"
|
|
|
|
"gsd-rfkill.target"
|
|
|
|
"gsd-screensaver-proxy.target"
|
|
|
|
"gsd-sharing.target"
|
|
|
|
"gsd-smartcard.target"
|
|
|
|
"gsd-sound.target"
|
|
|
|
"gsd-wacom.target"
|
|
|
|
"gsd-wwan.target"
|
|
|
|
"gsd-a11y-settings.target"
|
|
|
|
"gsd-housekeeping.target"
|
|
|
|
"gsd-power.target"
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.user.targets."gnome-session-x11-services".wants = [
|
|
|
|
"gsd-xsettings.target"
|
|
|
|
];
|
|
|
|
|
2019-01-25 17:43:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|