mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
4a11ce7f26
Closes #59911
46 lines
689 B
Nix
46 lines
689 B
Nix
# 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 ];
|
|
|
|
};
|
|
|
|
}
|