feat: add nnn module
This commit is contained in:
parent
57cd092fef
commit
0d0a0b3f98
38
modules/home/applications/nnn.nix
Normal file
38
modules/home/applications/nnn.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.ataraxia.programs.nnn;
|
||||
in
|
||||
{
|
||||
options.ataraxia.programs.nnn = {
|
||||
enable = mkEnableOption "Enable nnn program";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nnn = {
|
||||
enable = true;
|
||||
package = pkgs.nnn.override { withNerdIcons = true; };
|
||||
# extraPackages = with pkgs; [ ffmpegthumbnailer mediainfo sxiv ];
|
||||
# bookmarks = {
|
||||
# d = "~/Documents";
|
||||
# D = "~/Downloads";
|
||||
# p = "~/Pictures";
|
||||
# v = "~/Videos";
|
||||
# };
|
||||
# plugins = { };
|
||||
};
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
"n" = "nnn -deHE";
|
||||
};
|
||||
|
||||
persist.state.directories = [
|
||||
".config/nnn"
|
||||
];
|
||||
};
|
||||
}
|
@ -43,6 +43,7 @@ in
|
||||
ataraxia.defaults.zsh.enable = mkDefault true;
|
||||
ataraxia.programs.direnv.enable = mkDefault true;
|
||||
ataraxia.programs.eza.enable = mkDefault true;
|
||||
ataraxia.programs.nnn.enable = mkDefault true;
|
||||
ataraxia.security.pass-secret-service.enable = mkDefault true;
|
||||
ataraxia.security.password-store.enable = mkDefault true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user