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 = [
./nautilus.nix
./nnn.nix
./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.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;