2020-04-24 23:36:52 +00:00
|
|
|
# GNOME Settings Daemon
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
cfg = config.services.gnome.gnome-settings-daemon;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
(mkRemovedOptionModule
|
|
|
|
["services" "gnome3" "gnome-settings-daemon" "package"]
|
|
|
|
"")
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
# Added 2021-05-07
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "gnome-settings-daemon" "enable" ]
|
|
|
|
[ "services" "gnome" "gnome-settings-daemon" "enable" ]
|
|
|
|
)
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
services.gnome.gnome-settings-daemon = {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "GNOME Settings Daemon");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pkgs.gnome.gnome-settings-daemon
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
services.udev.packages = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pkgs.gnome.gnome-settings-daemon
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
systemd.packages = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pkgs.gnome.gnome-settings-daemon
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
systemd.user.targets."gnome-session-x11-services".wants = [
|
|
|
|
"org.gnome.SettingsDaemon.XSettings.service"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
systemd.user.targets."gnome-session-x11-services-ready".wants = [
|
|
|
|
"org.gnome.SettingsDaemon.XSettings.service"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|