2020-04-24 23:36:52 +00:00
|
|
|
# GNOME Sushi daemon.
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
imports = [
|
|
|
|
# Added 2021-05-07
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "sushi" "enable" ]
|
|
|
|
[ "services" "gnome" "sushi" "enable" ]
|
|
|
|
)
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
services.gnome.sushi = {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable Sushi, a quick previewer for nautilus.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
config = mkIf config.services.gnome.sushi.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
environment.systemPackages = [ pkgs.gnome.sushi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
services.dbus.packages = [ pkgs.gnome.sushi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|