Add nnn file browser with plugins

Hyprland: rebing caps-lock to ctrl
This commit is contained in:
Evie Litherland-Smith 2023-10-25 07:40:39 +01:00
parent c68cc41915
commit 9fbda10700
3 changed files with 28 additions and 14 deletions

View file

@ -33,6 +33,10 @@
url = "github:folke/tokyonight.nvim";
flake = false;
};
nnn = {
url = "https://github.com/jarun/nnn.git";
flake = false;
};
};
outputs =
@ -73,7 +77,7 @@
inherit (inputs) anyrun watershot;
};
extraSpecialArgs = specialArgs // {
inherit (inputs) crafted-emacs tokyonight-folke;
inherit (inputs) crafted-emacs tokyonight-folke nnn;
};
in nixpkgs.lib.nixosSystem {
inherit system specialArgs;

View file

@ -24,21 +24,16 @@ in ''
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
exec-once = systemctl --user restart xdg-desktop-portal.service xdg-desktop-portal-hyprland.service avizo.service
misc {
disable_autoreload = true
vrr = 2
}
misc:disable_autoreload = true
gestures {
workspace_swipe = true
}
gestures:workspace_swipe = true
input {
kb_layout = gb
kb_options = ctrl:nocaps
follow_mouse = 1
touchpad {
natural_scroll = yes
}
touchpad:natural_scroll = yes
}
general {
@ -89,9 +84,7 @@ in ''
animation = workspaces, 1, 6, default
}
XWayland {
force_zero_scaling = true
}
xwayland:force_zero_scaling = true
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
bind = SUPER, F1, exec, ${pkgs.gtklock}/bin/gtklock

17
home/nnn.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, nnn, ... }:
{
programs.nnn = {
enable = true;
bookmarks = {
d = "~/Documents";
D = "~/Downloads";
p = "~/Pictures";
v = "~/Videos";
};
plugins = {
src = "${nnn}/plugins";
mappings = { };
};
};
}