2020-04-24 23:36:52 +00:00
|
|
|
# File Roller.
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
let cfg = config.programs.file-roller;
|
|
|
|
|
|
|
|
in {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Added 2019-08-09
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "file-roller" "enable" ]
|
|
|
|
[ "programs" "file-roller" "enable" ])
|
|
|
|
];
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
programs.file-roller = {
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "File Roller, an archive manager for GNOME");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
package = mkPackageOption pkgs [ "gnome" "file-roller" ] { };
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
config = mkIf cfg.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
services.dbus.packages = [ cfg.package ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|