modules: init nnn file manager
This commit is contained in:
parent
b26c6edefa
commit
20ec3eb336
3 changed files with 19 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./nautilus.nix
|
||||
./nnn.nix
|
||||
./vifm
|
||||
];
|
||||
}
|
||||
|
|
13
modules/home-manager/programs/file-managers/nnn.nix
Normal file
13
modules/home-manager/programs/file-managers/nnn.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ 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;
|
||||
}
|
|
@ -95,6 +95,10 @@
|
|||
};
|
||||
|
||||
local.programs.file-managers.vifm.enable = lib.mkDefault true;
|
||||
local.programs.file-managers.nnn = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.nnn;
|
||||
};
|
||||
|
||||
local.programs.aerc.enable = lib.mkDefault true;
|
||||
|
||||
|
@ -115,7 +119,7 @@
|
|||
web.enable = lib.mkDefault true;
|
||||
psql = {
|
||||
enable = lib.mkDefault true;
|
||||
package = lib.mkDefault pkgs.postgresql_14;
|
||||
package = lib.mkDefault pkgs.postgresql_16;
|
||||
};
|
||||
eza.enable = lib.mkDefault true;
|
||||
direnv.enable = lib.mkDefault true;
|
||||
|
|
Loading…
Reference in a new issue