1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/modules/services/desktops/gnome3/gnome-settings-daemon.nix

46 lines
690 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.";
# 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 ];
};
}