mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
468cb5980b
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
52 lines
891 B
Nix
52 lines
891 B
Nix
# GNOME Online Miners daemon.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
|
|
# Added 2021-05-07
|
|
imports = [
|
|
(mkRenamedOptionModule
|
|
[ "services" "gnome3" "gnome-online-miners" "enable" ]
|
|
[ "services" "gnome" "gnome-online-miners" "enable" ]
|
|
)
|
|
];
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome.gnome-online-miners = {
|
|
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable GNOME Online Miners, a service that
|
|
crawls through your online content.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.gnome.gnome-online-miners.enable {
|
|
|
|
environment.systemPackages = [ pkgs.gnome.gnome-online-miners ];
|
|
|
|
services.dbus.packages = [ pkgs.gnome.gnome-online-miners ];
|
|
|
|
};
|
|
|
|
}
|