14 lines
294 B
Nix
14 lines
294 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.local.programs.file-managers.nnn;
|
||
|
in
|
||
|
{
|
||
|
options.local.programs.file-managers.nnn = with lib; {
|
||
|
enable = mkEnableOption "nnn";
|
||
|
package = mkPackageOption pkgs "nnn" {};
|
||
|
};
|
||
|
|
||
|
config.home.packages = lib.optional cfg.enable cfg.package;
|
||
|
}
|