diff --git a/flake.nix b/flake.nix index 79de9a9d..ef83e615 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/home/hyprland/config.nix b/home/hyprland/config.nix index 302903ec..308d5bfd 100644 --- a/home/hyprland/config.nix +++ b/home/hyprland/config.nix @@ -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 diff --git a/home/nnn.nix b/home/nnn.nix new file mode 100644 index 00000000..a7a53184 --- /dev/null +++ b/home/nnn.nix @@ -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 = { }; + }; + }; +}