3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services/desktops/gnome3/gnome-settings-daemon.nix

46 lines
689 B
Nix
Raw Normal View History

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 = {
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 ];
};
}