modules: init nnn file manager

This commit is contained in:
Dmitriy Pleshevskiy 2024-09-05 18:46:53 +03:00
parent b26c6edefa
commit 20ec3eb336
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
3 changed files with 19 additions and 1 deletions

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./nautilus.nix ./nautilus.nix
./nnn.nix
./vifm ./vifm
]; ];
} }

View 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;
}

View file

@ -95,6 +95,10 @@
}; };
local.programs.file-managers.vifm.enable = lib.mkDefault true; 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; local.programs.aerc.enable = lib.mkDefault true;
@ -115,7 +119,7 @@
web.enable = lib.mkDefault true; web.enable = lib.mkDefault true;
psql = { psql = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
package = lib.mkDefault pkgs.postgresql_14; package = lib.mkDefault pkgs.postgresql_16;
}; };
eza.enable = lib.mkDefault true; eza.enable = lib.mkDefault true;
direnv.enable = lib.mkDefault true; direnv.enable = lib.mkDefault true;