2019-01-25 16:43:36 +00:00
|
|
|
# GNOME Settings Daemon
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.gnome3.gnome-settings-daemon;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.gnome3.gnome-settings-daemon = {
|
|
|
|
|
2019-04-20 02:41:48 +01:00
|
|
|
enable = mkEnableOption "GNOME Settings Daemon";
|
2019-01-25 16:43:36 +00:00
|
|
|
|
|
|
|
# There are many forks of gnome-settings-daemon
|
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.gnome3.gnome-settings-daemon;
|
|
|
|
description = "Which gnome-settings-daemon package to use.";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
|
|
|
|
services.udev.packages = [ cfg.package ];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|