From 2b8f60cf1eddf9fe72b1fa613a70b9c7acaa0eb8 Mon Sep 17 00:00:00 2001 From: Adrian G L Date: Mon, 3 Nov 2025 13:47:02 +0100 Subject: [PATCH] kdeconnect --- home/kdeconnect.nix | 4 ++++ home/neovim.nix | 22 +++++++++++++++++----- hosts/legolas/configuration.nix | 1 + modules/kdeconnect.nix | 15 +++++++++++++++ 4 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 modules/kdeconnect.nix diff --git a/home/kdeconnect.nix b/home/kdeconnect.nix index 91e8e04..1989341 100644 --- a/home/kdeconnect.nix +++ b/home/kdeconnect.nix @@ -5,6 +5,10 @@ ... }: { + home.packages = with pkgs; [ + kdePackages.xdg-desktop-portal-kde + kdePackages.kdeconnect-kde + ]; services.kdeconnect = { enable = true; indicator = true; diff --git a/home/neovim.nix b/home/neovim.nix index 7b78aed..41f7ccf 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -1,5 +1,8 @@ { pkgs, ... }: { + + + programs.neovim = { enable = true; viAlias = true; @@ -7,24 +10,34 @@ defaultEditor = true; withPython3 = true; withNodeJs = true; - + extraConfig = '' set backspace=indent,eol,start syntax on set tabstop=2 softtabstop=0 autoindent expandtab shiftwidth=2 smarttab - + + " Wildmenu for command-line completion + set wildmenu + set wildmode=longest:full,full " Example wildmode setting + + " Use completion instead of ctrl n and ctrl p inoremap pumvisible() ? "\" : "\" inoremap "\" - ''; + set clipboard=unnamed,unnamedplus + set mouse=a + + ''; + extraLuaConfig = '' vim.wo.number = true -- vim.wo.relativenumber = true vim.api.nvim_set_option("clipboard", "unnamedplus") ''; + extraPackages = [ pkgs.fzf ]; # For fzf-vim functionality plugins = with pkgs.vimPlugins; [ @@ -36,10 +49,9 @@ typst-vim typst-preview-nvim aider-nvim - #magma-nvim#jupyter - #molten-nvim #jupyter ]; + # CoC configuration (replacing coc-rust-analyzer plugin) coc.enable = true; coc.settings = { diff --git a/hosts/legolas/configuration.nix b/hosts/legolas/configuration.nix index c70d35b..06b6320 100644 --- a/hosts/legolas/configuration.nix +++ b/hosts/legolas/configuration.nix @@ -34,6 +34,7 @@ ../../modules/jupyterhub.nix ../../modules/blog.nix ../../modules/ollama.nix + ../../modules/kdeconnect.nix ../../modules/desktopApplications.nix ]; diff --git a/modules/kdeconnect.nix b/modules/kdeconnect.nix new file mode 100644 index 0000000..3c6015a --- /dev/null +++ b/modules/kdeconnect.nix @@ -0,0 +1,15 @@ +{ + pkgs, + lib, + config, + ... +}: +{ + environment.systemPackages = with pkgs; [ + kdePackages.xdg-desktop-portal-kde + kdePackages.kdeconnect-kde + ]; + programs.kdeconnect = { + enable = true; + }; +}