diff --git a/hosts/lars/default.nix b/hosts/lars/default.nix index e2c5d9c..6915250 100644 --- a/hosts/lars/default.nix +++ b/hosts/lars/default.nix @@ -1,5 +1,10 @@ { config, inputs, pkgs, ... }: { + imports = [ + ./hyprland.nix + ./programs.nix + ]; + nixpkgs.config.allowUnfree = true; time.timeZone = "Europe/Zurich"; security.sudo.package = pkgs.sudo.override { withInsults = true; }; @@ -62,6 +67,10 @@ enable = true; catppuccin = true; }; + + neovim = { + enable = true; + }; }; services = { @@ -99,6 +108,9 @@ console.keyMap = "sg"; # services.flatpak.enable = true; + services = { + twingate.enable = true; + }; system.stateVersion = "23.11"; nix.settings.experimental-features = ["nix-command" "flakes"]; diff --git a/hosts/lars/dyonisos/default.nix b/hosts/lars/dyonisos/default.nix index 2d68268..22a270e 100644 --- a/hosts/lars/dyonisos/default.nix +++ b/hosts/lars/dyonisos/default.nix @@ -1,8 +1,6 @@ _: { imports = [ ../. - ./../programs.nix - ./../hyprland.nix ./programs.nix ./configuration.nix ./hardware-configuration.nix diff --git a/hosts/lars/kronos/default.nix b/hosts/lars/kronos/default.nix index 2d68268..22a270e 100644 --- a/hosts/lars/kronos/default.nix +++ b/hosts/lars/kronos/default.nix @@ -1,8 +1,6 @@ _: { imports = [ ../. - ./../programs.nix - ./../hyprland.nix ./programs.nix ./configuration.nix ./hardware-configuration.nix diff --git a/hosts/lars/programs.nix b/hosts/lars/programs.nix index a730582..35d5eee 100644 --- a/hosts/lars/programs.nix +++ b/hosts/lars/programs.nix @@ -43,7 +43,6 @@ in { smartmontools python3 rustdesk - neovim tmux kitty nextcloud-client @@ -58,6 +57,7 @@ in { webcord element-desktop swww + toipe ]; }; } diff --git a/modules/tui/neovim.nix b/modules/tui/neovim.nix index e87674d..a05a53d 100644 --- a/modules/tui/neovim.nix +++ b/modules/tui/neovim.nix @@ -82,6 +82,7 @@ in { java-language-server.enable = true; #pylyzer.enable = true; rnix-lsp.enable = true; + pyright.enable = true; }; #onAttach = '' # vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') @@ -159,11 +160,36 @@ in { enable = true; settings.theme = "dark"; }; + }; extraPlugins = with pkgs.vimPlugins; [ zen-mode-nvim + lazygit-nvim ]; + + keymaps = [ + { + mode = "n"; + key = "pv"; + action = "Explore"; + } + { + mode = "n"; + key = "w"; + action = "w"; + } + { + mode = "n"; + key = "qw"; + action = "q"; + } + { + mode = "n"; + key = "gg"; + action = "LazyGit"; + } + ]; }; }; };