From 67a86937d3e185bcc29900ff69c76769de9b021e Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 30 May 2024 15:52:45 +0200 Subject: [PATCH] feat: move home-manager config to submodule --- home-manager/bat.nix | 13 -- home-manager/carapace.nix | 8 - home-manager/direnv.nix | 11 -- home-manager/email.nix | 125 --------------- home-manager/firefox.nix | 9 -- home-manager/fzf.nix | 10 -- home-manager/git.nix | 71 --------- home-manager/gpg/default.nix | 21 --- home-manager/gpg/pubring.asc | 99 ------------ home-manager/kitty.nix | 19 --- home-manager/neovim/auto-session.lua | 3 - home-manager/neovim/commands.lua | 1 - home-manager/neovim/comment.lua | 1 - home-manager/neovim/dap.lua | 35 ----- home-manager/neovim/default.nix | 170 --------------------- home-manager/neovim/gitsigns.lua | 1 - home-manager/neovim/indent-blankline.lua | 5 - home-manager/neovim/keymaps.lua | 69 --------- home-manager/neovim/lspconfig.lua | 184 ----------------------- home-manager/neovim/lualine.lua | 7 - home-manager/neovim/luasnip.lua | 1 - home-manager/neovim/neorg.lua | 16 -- home-manager/neovim/notify.lua | 2 - home-manager/neovim/nvim-cmp.lua | 87 ----------- home-manager/neovim/options.lua | 61 -------- home-manager/neovim/project-nvim.lua | 1 - home-manager/neovim/tabline.lua | 1 - home-manager/neovim/telescope.lua | 29 ---- home-manager/neovim/themes.lua | 1 - home-manager/neovim/toggleterm.lua | 1 - home-manager/neovim/treesitter.lua | 14 -- home-manager/nextcloud.nix | 8 - home-manager/starship.nix | 11 -- home-manager/sway/default.nix | 148 ------------------ home-manager/sway/dunst.nix | 34 ----- home-manager/sway/i3status-rust.nix | 34 ----- home-manager/zoxide.nix | 9 -- home-manager/zsh.nix | 31 ---- home-mandlm | 1 + home-mandlm.nix | 30 ++-- 40 files changed, 16 insertions(+), 1366 deletions(-) delete mode 100644 home-manager/bat.nix delete mode 100644 home-manager/carapace.nix delete mode 100644 home-manager/direnv.nix delete mode 100644 home-manager/email.nix delete mode 100644 home-manager/firefox.nix delete mode 100644 home-manager/fzf.nix delete mode 100644 home-manager/git.nix delete mode 100644 home-manager/gpg/default.nix delete mode 100644 home-manager/gpg/pubring.asc delete mode 100644 home-manager/kitty.nix delete mode 100644 home-manager/neovim/auto-session.lua delete mode 100644 home-manager/neovim/commands.lua delete mode 100644 home-manager/neovim/comment.lua delete mode 100644 home-manager/neovim/dap.lua delete mode 100644 home-manager/neovim/default.nix delete mode 100644 home-manager/neovim/gitsigns.lua delete mode 100644 home-manager/neovim/indent-blankline.lua delete mode 100644 home-manager/neovim/keymaps.lua delete mode 100644 home-manager/neovim/lspconfig.lua delete mode 100644 home-manager/neovim/lualine.lua delete mode 100644 home-manager/neovim/luasnip.lua delete mode 100644 home-manager/neovim/neorg.lua delete mode 100644 home-manager/neovim/notify.lua delete mode 100644 home-manager/neovim/nvim-cmp.lua delete mode 100644 home-manager/neovim/options.lua delete mode 100644 home-manager/neovim/project-nvim.lua delete mode 100644 home-manager/neovim/tabline.lua delete mode 100644 home-manager/neovim/telescope.lua delete mode 100644 home-manager/neovim/themes.lua delete mode 100644 home-manager/neovim/toggleterm.lua delete mode 100644 home-manager/neovim/treesitter.lua delete mode 100644 home-manager/nextcloud.nix delete mode 100644 home-manager/starship.nix delete mode 100644 home-manager/sway/default.nix delete mode 100644 home-manager/sway/dunst.nix delete mode 100644 home-manager/sway/i3status-rust.nix delete mode 100644 home-manager/zoxide.nix delete mode 100644 home-manager/zsh.nix create mode 160000 home-mandlm diff --git a/home-manager/bat.nix b/home-manager/bat.nix deleted file mode 100644 index 35d9a1f..0000000 --- a/home-manager/bat.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ config, lib, pkgs, theme, ... }: - -let - theme_name = "Solarized (${theme})"; -in -{ - programs = { - bat = { - enable = true; - config.theme = theme_name; - }; - }; -} diff --git a/home-manager/carapace.nix b/home-manager/carapace.nix deleted file mode 100644 index 30b178c..0000000 --- a/home-manager/carapace.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, lib, pkgs, user, theme, ... }: -{ - programs.carapace = { - enable = true; - enableZshIntegration = true; - }; -} - diff --git a/home-manager/direnv.nix b/home-manager/direnv.nix deleted file mode 100644 index 1061719..0000000 --- a/home-manager/direnv.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs = { - direnv = { - enable = true; - enableZshIntegration = true; - nix-direnv.enable = true; - }; - }; -} diff --git a/home-manager/email.nix b/home-manager/email.nix deleted file mode 100644 index ea5ad54..0000000 --- a/home-manager/email.nix +++ /dev/null @@ -1,125 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - home.packages = [ pkgs.libsecret ]; - - programs.msmtp.enable = true; - programs.mbsync.enable = true; - programs.neomutt = { - enable = true; - sidebar.enable = true; - vimKeys = true; - macros = [ - { - action = "mbsync -all"; - key = "S"; - map = [ "index" ]; - } - ]; - }; - - accounts.email = { - maildirBasePath = "${config.xdg.dataHome}/mail"; - - accounts = { - molez = rec { - primary = true; - - realName = "Michael Mandl"; - address = "mandlm@molez.net"; - - userName = address; - passwordCommand = "secret-tool lookup email mandlm@molez.net"; - - imap = { - host = "mail.molez.net"; - port = 993; - tls.enable = true; - }; - - smtp = { - host = "mail.molez.net"; - port = 465; - tls.enable = true; - }; - - gpg = { - key = "0x4AA25D647AA54CC7"; - signByDefault = true; - }; - - msmtp.enable = true; - mbsync = { - enable = true; - create = "both"; - expunge = "both"; - }; - - neomutt.enable = true; - }; - swp = { - realName = "Michael Mandl"; - address = "mandl@vi-bim.de"; - - userName = "mandl"; - passwordCommand = "secret-tool lookup email mandl@vi-bim.de"; - - imap = { - host = "swpmail.softwareparadies.de"; - port = 993; - tls.enable = true; - }; - - smtp = { - host = "swpmail.softwareparadies.de"; - port = 465; - tls.enable = true; - }; - - gpg = { - key = "0x4E60F44227F611B4 "; - signByDefault = true; - }; - - signature = { - showSignature = "append"; - text = '' - -- - Mit freundlichen Grüßen - - Michael Mandl - Entwicklung - ------------------------------------------ - swp software systems GmbH & Co. KG - - Königsbrücker Straße 124 - 01099 Dresden - Tel: 0351-492850 - Fax: 0351-4928550 - www: https://www.vi-bim.de - - Kennen Sie schon unsere FAQ-Wissensdatenbank? Einfach hier klicken: - https://faq.vi-bim.de - - Unsere Datenschutzerklärung finden Sie unter https://datenschutz.vi-bim.de - - Registergericht: Amtsgericht Dresden HRA 3008 - persönlich haftender Gesellschafter: - swp Beteiligungs GmbH - Registergericht: Amtsgericht Dresden HRB 15 20 9 - Geschäftsführer: Holger Schönemann, Stefan Urlberger - ''; - }; - - msmtp.enable = true; - mbsync = { - enable = true; - create = "both"; - expunge = "both"; - }; - - neomutt.enable = true; - }; - }; - }; -} diff --git a/home-manager/firefox.nix b/home-manager/firefox.nix deleted file mode 100644 index 327b21a..0000000 --- a/home-manager/firefox.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs = { - firefox = { - enable = true; - }; - }; -} diff --git a/home-manager/fzf.nix b/home-manager/fzf.nix deleted file mode 100644 index 0e83315..0000000 --- a/home-manager/fzf.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs = { - fzf = { - enable = true; - enableZshIntegration = true; - }; - }; -} diff --git a/home-manager/git.nix b/home-manager/git.nix deleted file mode 100644 index 874b218..0000000 --- a/home-manager/git.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs = { - git = { - enable = true; - extraConfig = { - core.editor = "nvim"; - - diff.external = "difft --background light"; - diff.tool = "difftastic"; - diff.ignoreSubmodules = "none"; - - difftool.difftastic.cmd = "difft --background light \"$LOCAL\" \"$REMOTE\""; - difftool.prompt = false; - - fetch.writeCommitGraph = true; - fetch.recurseSubmodules = true; - - format.pretty = "format:%C(yellow)%h %Cblue%>(12)%ad %C(red)%G? %Cgreen%<(7,trunc)%aN%Cred%d %Creset%s"; - - init.defaultBranch = "main"; - - log.date = "relative"; - - merge.ff = false; - merge.tool = "nvim"; - - mergetool.nvim.cmd = "nvim -f -c \"Gdiffsplit!\" \"$MERGED\""; - mergetool.prompt = false; - - pager.difftool = true; - - pull.rebase = true; - - push.recurseSubmodules = "on-demand"; - - rebase.autostash = true; - - rerere.enabled = true; - - status.submoduleSummary = true; - - submodule.recurse = true; - - user.private.email = "mandlm@molez.net"; - user.private.name = "Michael Mandl"; - user.private.signingkey = "4AA25D647AA54CC7"; - - user.swp.email = "mandl@vi-bim.de"; - user.swp.name = "Michael Mandl"; - user.swp.signingkey = "4E60F44227F611B4"; - - worktree.guessRemote = true; - }; - - aliases = { - identity = ''! git config user.name "$(git config user.$1.name)"; git config user.email "$(git config user.$1.email)"; git config user.signingkey "$(git config user.$1.signingkey)"; git config commit.gpgsign "true"; : ''; - clone-worktree = ''! mkdir $2; git clone $1 $2/.base; BRANCH=`git -C $2/.base symbolic-ref --short HEAD`; echo "branch is $BRANCH"; git -C $2/.base checkout --detach HEAD; git -C $2/.base worktree add ../$BRANCH; :''; - graph = "log --graph --all --max-count 32"; - }; - - ignores = [ - ".env" - ".direnv" - "*.swp" - ]; - }; - }; -} - diff --git a/home-manager/gpg/default.nix b/home-manager/gpg/default.nix deleted file mode 100644 index 3b7420a..0000000 --- a/home-manager/gpg/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - services.gpg-agent = { - enable = true; - enableZshIntegration = true; - pinentryFlavor = "gnome3"; - enableSshSupport = true; - sshKeys = [ "1F937AC8F77ED74CE24EAAE79B5601F73C6D115F" ]; - }; - - programs.gpg = { - enable = true; - mutableKeys = true; - mutableTrust = true; - publicKeys = [{ - source = ./pubring.asc; - trust = "ultimate"; - }]; - }; -} diff --git a/home-manager/gpg/pubring.asc b/home-manager/gpg/pubring.asc deleted file mode 100644 index 02bccb3..0000000 --- a/home-manager/gpg/pubring.asc +++ /dev/null @@ -1,99 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- - -mQINBF75iDUBEADKT7HJf29rKofixOegZt6C4fDWhgJuVa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KU5g9EIn9hG0 -BQJe+YShAhsMBQkJZgGAAAoJEE5g9EIn9hG0rgQQAILF/S4BypQZvK806L/Nr0LU -pyYBSrVQbdRLI0axDxAJ4wTyJJCB2wbgmQ8nnPJt42fzXq0bcOTFnIiZ5J6vXMou -dZ74/ZkRMhpluB869nP2hFcBJbbKsPf+6raEvMNRwcRk7Knep0wCuHw87t7xo7QK -Zs1oBpJDqdJ8StocSotw8d7Nd2FZ7pU3qPGiOqbg8th/UDgYhqeM2jLOFHJ5FN5t -JbcNWPcG2sDQPtd2u8RAoXTmoHBYa/07CrOhmFfUxE0yoOJxLZgVJNgzfmMX+Q6l -4IjnRfpQmH5PINncJmWN/FB//MRDRtTjHdI9UAyyXOHdnaquT7SfwQXE8SHKInsd -XcDAKNqRzNOG/92FOsbbhgRx2kyrhDdJRsh4zgV2OsNwBkY6wWUMM632PpIBauJN -yAFNm1Xle81CCxO43APDVnfpxC2nkkoHwy6vJlF3S4DwRTbCPLMonMMyY43pRZnR -Kumv0YJKKK8gV4hTYp1bc4fVDIgyfUmunFFA+LDwC09YbWSi9XJ7VveYD3T+l+qx -Brq7XvOXTd3E6F31Q+U+cU95YFCRUL3yVl+U4hpHdOB0K4gORNlUKhFNfzz1iyUS -tDXut79lup1kknfC4Fm3oJQFELMbnorkbnxp2HZnSjP2+yY9riV9vrCmN7+YihZC -iL8jv/hUCyjfKBN5Qa14 -=dpaN ------END PGP PUBLIC KEY BLOCK----- diff --git a/home-manager/kitty.nix b/home-manager/kitty.nix deleted file mode 100644 index 372d237..0000000 --- a/home-manager/kitty.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ theme, ... }: - -let - theme_name = if theme == "light" then "Solarized Light" else "Solarized Dark"; -in -{ - programs = { - kitty = { - enable = true; - theme = theme_name; - font = { - name = "FiraCode"; - }; - settings = { - tab_bar_style = "powerline"; - }; - }; - }; -} diff --git a/home-manager/neovim/auto-session.lua b/home-manager/neovim/auto-session.lua deleted file mode 100644 index a3dc5d9..0000000 --- a/home-manager/neovim/auto-session.lua +++ /dev/null @@ -1,3 +0,0 @@ -require("auto-session").setup { - log_level = "error", -} diff --git a/home-manager/neovim/commands.lua b/home-manager/neovim/commands.lua deleted file mode 100644 index 10e03a5..0000000 --- a/home-manager/neovim/commands.lua +++ /dev/null @@ -1 +0,0 @@ -vim.api.nvim_create_user_command("BufOnly", "%bd|e#|bd#", {}) diff --git a/home-manager/neovim/comment.lua b/home-manager/neovim/comment.lua deleted file mode 100644 index 5060319..0000000 --- a/home-manager/neovim/comment.lua +++ /dev/null @@ -1 +0,0 @@ -require('Comment').setup({}) diff --git a/home-manager/neovim/dap.lua b/home-manager/neovim/dap.lua deleted file mode 100644 index d491267..0000000 --- a/home-manager/neovim/dap.lua +++ /dev/null @@ -1,35 +0,0 @@ -local dap = require("dap") -local dapui = require("dapui") - -dapui.setup() - -vim.fn.sign_define("DapBreakpoint", { text = "🔴", texthl = "", linehl = "", numhl = "" }) - --- debugging keymaps -vim.keymap.set("n", "", dap.continue, { noremap = true, silent = true }) -vim.keymap.set("n", "", dap.toggle_breakpoint, { noremap = true, silent = true }) -vim.keymap.set("n", "", dap.step_over, { noremap = true, silent = true }) -vim.keymap.set("n", "", dap.step_into, { noremap = true, silent = true }) - -vim.keymap.set("n", "", dap.step_out, { noremap = true, silent = true }) -vim.keymap.set("n", "", dap.step_out, { noremap = true, silent = true }) -- in kitty - -vim.keymap.set("n", "", dapui.eval, { noremap = true, silent = true }) - --- trigger auto-completion in repl -vim.cmd([[ - augroup TriggerDapReplAutoCompletion - autocmd! - autocmd FileType dap-repl lua require("dap.ext.autocompl").attach() - augroup END -]]) - -dap.listeners.after.event_initialized["dapui_config"] = function() - dapui.open() -end -dap.listeners.before.event_terminated["dapui_config"] = function() - dapui.close() -end -dap.listeners.before.event_exited["dapui_config"] = function() - dapui.close() -end diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix deleted file mode 100644 index adae6ef..0000000 --- a/home-manager/neovim/default.nix +++ /dev/null @@ -1,170 +0,0 @@ -{ pkgs, theme, ... }: -let - pkg_src = pkgs.unstable; -in -{ - - # symlink for a stable path - home.file.".vscode-extensions/vscode-lldb".source = pkg_src.vscode-extensions.vadimcn.vscode-lldb; - - programs = { - neovim = { - enable = true; - package = pkg_src.neovim-unwrapped; - defaultEditor = true; - plugins = with pkg_src.vimPlugins; [ - # theme - nvim-solarized-lua - - delimitMate - vim-bbye - ansible-vim - - # ui - dressing-nvim - - # session handling - project-nvim - auto-session - - # escape handling - better-escape-nvim - - nvim-treesitter.withAllGrammars - markdown-preview-nvim # use({ "iamcco/markdown-preview.nvim", run = ":call mkdp#util#install()" }) - toggleterm-nvim - nvim-notify - comment-nvim - lualine-nvim - tabline-nvim - indent-blankline-nvim - plenary-nvim - vim-illuminate - registers-nvim - vim-surround - - editorconfig-nvim - - # git - gitsigns-nvim - vim-fugitive - vim-flog - git-blame-nvim - nvim-web-devicons # used by diffview-nvim - - # snippets - friendly-snippets - luasnip - - # auto-completion - nvim-cmp - cmp-nvim-lsp - cmp-buffer - cmp-path - cmp-cmdline - cmp-nvim-lua - cmp_luasnip - cmp-calc - cmp-nvim-lsp-signature-help - - # telescope - telescope-nvim - telescope-fzf-native-nvim - telescope-ui-select-nvim - - # LSP - nvim-lspconfig - lsp-status-nvim - rustaceanvim - neodev-nvim - null-ls-nvim - lsp_lines-nvim - lsp-inlayhints-nvim - - # debugging - nvim-dap - nvim-dap-ui - - # neorg - neorg - neorg-telescope - ]; - - withNodeJs = true; - - extraPackages = with pkg_src; [ - # language servers - lua-language-server - terraform-ls - tflint - nodePackages.bash-language-server - nodePackages.yaml-language-server - nodePackages.prettier - nodePackages.eslint_d - nodePackages.typescript-language-server - nodePackages.typescript - nodePackages.dockerfile-language-server-nodejs - nodePackages.vscode-langservers-extracted - nodePackages.volar - lldb - vscode-extensions.vadimcn.vscode-lldb - marksman - clang-tools - cmake-language-server - texlab - nixd - nixpkgs-fmt - ]; - - extraLuaPackages = luaPackages: [ - luaPackages.lua-utils-nvim - luaPackages.pathlib-nvim - ]; - - extraConfig = '' - lua << EOF - vim.o.guifont = "DejaVu Sans Mono:h10" - - if vim.g.neovide then - vim.g.neovide_fullscreen = true - vim.g.neovide_cursor_animation_length = 0.01 - vim.g.neovide_cursor_trail_length = 0.01 - end - - ${builtins.readFile ./keymaps.lua } - ${builtins.readFile ./options.lua } - ${builtins.readFile ./commands.lua } - ${builtins.readFile ./treesitter.lua } - ${builtins.readFile ./lspconfig.lua } - ${builtins.readFile ./auto-session.lua } - ${builtins.readFile ./toggleterm.lua } - ${builtins.readFile ./notify.lua } - ${builtins.readFile ./comment.lua } - ${builtins.readFile ./lualine.lua } - ${builtins.readFile ./tabline.lua } - ${builtins.readFile ./indent-blankline.lua } - ${builtins.readFile ./gitsigns.lua } - ${builtins.readFile ./luasnip.lua } - ${builtins.readFile ./nvim-cmp.lua } - ${builtins.readFile ./telescope.lua } - - ${builtins.readFile ./themes.lua } - vim.opt.background = '${theme}' - - ${builtins.readFile ./project-nvim.lua } - ${builtins.readFile ./dap.lua } - ${builtins.readFile ./neorg.lua } - - vim.g.gitblame_date_format = "%r" - - -- setup illuminate highlight groups - vim.api.nvim_set_hl(0, "IlluminatedWordText", { bold = true }) - vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "IlluminatedWordText" }) - vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "IlluminatedWordText" }) - EOF - ''; - }; - }; -} - - diff --git a/home-manager/neovim/gitsigns.lua b/home-manager/neovim/gitsigns.lua deleted file mode 100644 index 91fa65b..0000000 --- a/home-manager/neovim/gitsigns.lua +++ /dev/null @@ -1 +0,0 @@ -require('gitsigns').setup() diff --git a/home-manager/neovim/indent-blankline.lua b/home-manager/neovim/indent-blankline.lua deleted file mode 100644 index d7e7b6c..0000000 --- a/home-manager/neovim/indent-blankline.lua +++ /dev/null @@ -1,5 +0,0 @@ -require("ibl").setup { - indent = { - char = "┊", - }, -} diff --git a/home-manager/neovim/keymaps.lua b/home-manager/neovim/keymaps.lua deleted file mode 100644 index 721631d..0000000 --- a/home-manager/neovim/keymaps.lua +++ /dev/null @@ -1,69 +0,0 @@ -local function nnoremap(key, command) - vim.api.nvim_set_keymap("n", key, command, { noremap = true }) -end - -vim.g.mapleader = " " -vim.g.maplocalleader = " " - --- Move around windows -nnoremap("", ":wincmd h") -nnoremap("", ":wincmd j") -nnoremap("", ":wincmd k") -nnoremap("", ":wincmd l") - --- Switch buffers -nnoremap("", ":TablineBufferNext") -nnoremap("", ":TablineBufferPrevious") - --- fugitive -nnoremap("g", ":0Git") - --- vim-flog -nnoremap("G", ":Flog -all -date=relative -open-cmd=new") - --- telescope -local telescope = require("telescope.builtin") -local telescope_themes = require("telescope.themes") -local telescope_projects = require("telescope").extensions.projects - -local function map_telescope(key, telescope_function) - vim.api.nvim_set_keymap("n", key, "", { - noremap = true, - callback = function() - local theme = telescope_themes.get_dropdown({ layout_config = { width = 0.9 } }) - telescope_function(theme) - end, - }) -end - -map_telescope("ff", telescope.find_files) -map_telescope("fb", telescope.buffers) -map_telescope("fg", telescope.git_files) -map_telescope("fp", telescope_projects.projects) -map_telescope("fs", telescope.lsp_document_symbols) -map_telescope("fS", telescope.lsp_dynamic_workspace_symbols) -map_telescope("", telescope.grep_string) -map_telescope("", telescope.live_grep) - --- terminal -vim.api.nvim_create_autocmd("TermOpen", { - pattern = "term://*", - callback = function() - local opts = { noremap = true } - vim.api.nvim_buf_set_keymap(0, 't', '', [[]], opts) - vim.api.nvim_buf_set_keymap(0, 't', '', [[h]], opts) - vim.api.nvim_buf_set_keymap(0, 't', '', [[j]], opts) - vim.api.nvim_buf_set_keymap(0, 't', '', [[k]], opts) - vim.api.nvim_buf_set_keymap(0, 't', '', [[l]], opts) - end, - desc = "Map terminal esc and window switch keys", -}) - --- buffer closing -nnoremap("gq", ":Bdelete") - --- toggle search highlighting -vim.cmd('nnoremap * v:hlsearch ? ":nohlsearch" : "*"') - --- insert-map jj/jk to escape -require("better_escape").setup() diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua deleted file mode 100644 index bda96da..0000000 --- a/home-manager/neovim/lspconfig.lua +++ /dev/null @@ -1,184 +0,0 @@ -local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) - -local on_attach = function(client, bufnr) - local function nnoremap(key, command) - vim.keymap.set("n", key, command, { noremap = true, silent = true, buffer = bufnr }) - end - - local function format_buffer() - vim.lsp.buf.format({ - timeout_ms = 3000, - async = false, - filter = function(formatter) - return formatter.name ~= "tsserver" and formatter.name ~= "volar" - end - }) - end - - require("lsp-inlayhints").on_attach(client, bufnr) - - local telescope = require("telescope.builtin") - - nnoremap("gD", vim.lsp.buf.declaration) - nnoremap("gd", telescope.lsp_definitions) - nnoremap("gt", telescope.lsp_type_definitions) - nnoremap("gi", telescope.lsp_implementations) - nnoremap("gr", telescope.lsp_references) - nnoremap("K", vim.lsp.buf.hover) - nnoremap("rn", vim.lsp.buf.rename) - nnoremap("ca", vim.lsp.buf.code_action) - nnoremap("f", format_buffer) - nnoremap("d", telescope.diagnostics) - nnoremap("D", require("lsp_lines").toggle) - nnoremap("", vim.diagnostic.goto_prev) - nnoremap("", vim.diagnostic.goto_next) - - if client.supports_method("textDocument/formatting") then - vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr }) - vim.api.nvim_create_autocmd("BufWritePre", { - group = augroup, - buffer = bufnr, - callback = format_buffer, - }) - end -end - -require("lsp-inlayhints").setup({}) - -local lsp_status = require("lsp-status") -lsp_status.config({ - current_function = false, - show_filename = false, - diagnostics = true, - status_symbol = "", -}) -lsp_status.register_progress() - --- setup lua language server for init.nvim and nvim plugin development -require("neodev").setup({ - override = function(root_dir, options) - if require("neodev.util").has_file(root_dir, "/etc/nixos") then - options.enabled = true - options.plugins = true - end - end, -}) - -local capabilities = require("cmp_nvim_lsp").default_capabilities(lsp_status.capabilities) - -local servers = { - ["bashls"] = {}, - ["clangd"] = {}, - ["cmake"] = {}, - ["dockerls"] = {}, - ["eslint"] = {}, - ["html"] = {}, - ["jsonls"] = {}, - ["lua_ls"] = { - Lua = { - runtime = { - version = "LuaJIT", - }, - diagnostics = { - globals = { "vim" }, - }, - workspace = { - library = vim.api.nvim_get_runtime_file("", true), - }, - telemetry = { - enable = false, - }, - }, - }, - ["marksman"] = {}, - ["nixd"] = {}, - ["pylsp"] = { - pylsp = { - plugins = { - pycodestyle = { - maxLineLength = 120 - } - } - } - }, - ["pyright"] = {}, - ["terraformls"] = {}, - ["texlab"] = {}, - ["tflint"] = {}, - ["tsserver"] = {}, - ["yamlls"] = { - yaml = { - keyOrdering = false - } - }, -} - -local lspconfig = require("lspconfig") - -for lsp, settings in pairs(servers) do - lspconfig[lsp].setup({ - settings = settings, - on_attach = on_attach, - capabilities = capabilities, - }) -end - --- setup rustaceanvim -vim.g.rustaceanvim = { - server = { - on_attach = on_attach, - settings = { - ["rust-analyzer"] = { - cargo = { - loadOutDirsFromCheck = true, - }, - checkOnSave = { command = "clippy" }, - procMacro = { - enable = true, - }, - }, - }, - }, -} - --- setup null-ls for markdown formatting -local null_ls = require("null-ls") -null_ls.setup({ - sources = { - null_ls.builtins.formatting.prettier, - null_ls.builtins.diagnostics.tsc, - }, - on_attach = on_attach, -}) - --- setup lsp_lines -require("lsp_lines").setup() - --- setup vim diagnostics -vim.diagnostic.config({ - virtual_text = false, - signs = true, - update_in_insert = true, - underline = true, - severity_sort = true, - float = { - border = "rounded", - source = "always", - header = "", - prefix = "", - }, -}) - --- setup diagnostics signs -local diagnostics_signs = { Error = "", Warn = "", Hint = "", Info = "" } -for type, icon in pairs(diagnostics_signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) -end - --- setup volar -lspconfig["volar"].setup({ - filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' }, - on_attach = on_attach, - capabilities = capabilities, -}) diff --git a/home-manager/neovim/lualine.lua b/home-manager/neovim/lualine.lua deleted file mode 100644 index 982987a..0000000 --- a/home-manager/neovim/lualine.lua +++ /dev/null @@ -1,7 +0,0 @@ -require('lualine').setup({ - options = { globalstatus = true }, - sections = { - lualine_c = { { "filename", path = 1 }, "require('lsp-status').status()" } - }, - extensions = { "toggleterm" } -}) diff --git a/home-manager/neovim/luasnip.lua b/home-manager/neovim/luasnip.lua deleted file mode 100644 index 80309d7..0000000 --- a/home-manager/neovim/luasnip.lua +++ /dev/null @@ -1 +0,0 @@ -require("luasnip.loaders.from_vscode").lazy_load() diff --git a/home-manager/neovim/neorg.lua b/home-manager/neovim/neorg.lua deleted file mode 100644 index eb9fe84..0000000 --- a/home-manager/neovim/neorg.lua +++ /dev/null @@ -1,16 +0,0 @@ -local neorg = require("neorg") - -neorg.setup({ - load = { - ["core.defaults"] = {}, - ["core.concealer"] = {}, - ["core.dirman"] = { - config = { - workspaces = { - notes = "~/notes", - }, - default_workspace = "notes", - }, - }, - } -}) diff --git a/home-manager/neovim/notify.lua b/home-manager/neovim/notify.lua deleted file mode 100644 index 6fd7a22..0000000 --- a/home-manager/neovim/notify.lua +++ /dev/null @@ -1,2 +0,0 @@ -require("notify").setup({ stages = "fade" }) -vim.notify = require("notify") diff --git a/home-manager/neovim/nvim-cmp.lua b/home-manager/neovim/nvim-cmp.lua deleted file mode 100644 index 7b0f78b..0000000 --- a/home-manager/neovim/nvim-cmp.lua +++ /dev/null @@ -1,87 +0,0 @@ -local has_words_before = function() - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and - vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub( - col, col):match("%s") == nil -end - -local cmp = require("cmp") -local luasnip = require("luasnip") - -cmp.setup({ - snippet = { - expand = function(args) - luasnip.lsp_expand(args.body) - end - }, - sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "nvim_lsp_signature_help" }, - { name = "luasnip" }, - { name = "path" }, - { name = "buffer" }, - { name = "nvim-lua" }, - { name = "calc" }, - }), - mapping = cmp.mapping.preset.insert({ - [""] = cmp.mapping.scroll_docs(-4), - [""] = cmp.mapping.scroll_docs(4), - [""] = cmp.mapping.complete({}), - [""] = cmp.mapping.abort(), - [""] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - }), - experimental = { ghost_text = true }, - window = { - completion = cmp.config.window.bordered(), - documentation = cmp.config.window.bordered(), - }, - formatting = { - fields = { "menu", "abbr", "kind" }, - format = function(entry, item) - local menu_icon = { - nvim_lsp = "λ", - luasnip = "⋗", - buffer = "Ω", - path = "🖿", - } - - item.menu = menu_icon[entry.source.name] - return item - end, - }, -}) - --- `/` cmdline setup. -cmp.setup.cmdline("/", { - sources = cmp.config.sources( - { name = "buffer" } - ) -}) - --- `:` cmdline setup. -cmp.setup.cmdline(":", { - sources = cmp.config.sources( - { name = "path" }, - { name = "cmdline" } - ) -}) diff --git a/home-manager/neovim/options.lua b/home-manager/neovim/options.lua deleted file mode 100644 index 5d9aa53..0000000 --- a/home-manager/neovim/options.lua +++ /dev/null @@ -1,61 +0,0 @@ --- termguicolors -vim.opt.termguicolors = true - --- line numbers -vim.opt.number = true - --- tabwidth -vim.opt.tabstop = 4 -vim.opt.shiftwidth = 4 - --- indent with spaces -vim.opt.expandtab = true - --- scroll offset -vim.opt.scrolloff = 4 - --- don't warp lines -vim.opt.wrap = false - --- split to right/below -vim.opt.splitright = true -vim.opt.splitbelow = true - --- presistent undo -vim.opt.undofile = true - --- searching -vim.opt.ignorecase = true -vim.opt.smartcase = true - --- preview commands -vim.opt.inccommand = "split" - --- completion -vim.opt.completeopt = "menu,menuone,noselect" - --- folding -vim.opt.foldmethod = "expr" -vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' -vim.opt.foldlevelstart = 99 - --- disable mouse -vim.opt.mouse = "" - --- set cursorline in active window -vim.cmd([[ - augroup CursorLine - autocmd! - autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline - autocmd WinLeave * setlocal nocursorline - augroup END -]]) - --- configure terminal -vim.cmd([[ - augroup terminal_setup - autocmd! - autocmd TermOpen * startinsert - autocmd TermOpen * setlocal nonumber norelativenumber - augroup END -]]) diff --git a/home-manager/neovim/project-nvim.lua b/home-manager/neovim/project-nvim.lua deleted file mode 100644 index 3b5902f..0000000 --- a/home-manager/neovim/project-nvim.lua +++ /dev/null @@ -1 +0,0 @@ -require('project_nvim').setup({}) diff --git a/home-manager/neovim/tabline.lua b/home-manager/neovim/tabline.lua deleted file mode 100644 index 74da8bb..0000000 --- a/home-manager/neovim/tabline.lua +++ /dev/null @@ -1 +0,0 @@ -require('tabline').setup({ enable = true, options = { show_bufnr = true, show_filename_only = true } }) diff --git a/home-manager/neovim/telescope.lua b/home-manager/neovim/telescope.lua deleted file mode 100644 index 2bb00cd..0000000 --- a/home-manager/neovim/telescope.lua +++ /dev/null @@ -1,29 +0,0 @@ -local telescope = require("telescope") -local actions = require("telescope.actions") -local themes = require("telescope.themes") - -telescope.setup({ - defaults = { - mappings = { - i = { - [""] = actions.move_selection_next, - [""] = actions.move_selection_previous, - [""] = actions.close, - [""] = actions.close - }, - n = { - [""] = actions.close, - [""] = actions.close - } - } - }, - extensions = { - ["ui-select"] = { - themes.get_dropdown({}) - }, - } -}) - -telescope.load_extension("fzf") -telescope.load_extension("ui-select") -telescope.load_extension("projects") diff --git a/home-manager/neovim/themes.lua b/home-manager/neovim/themes.lua deleted file mode 100644 index 8d0b48e..0000000 --- a/home-manager/neovim/themes.lua +++ /dev/null @@ -1 +0,0 @@ -vim.cmd("colorscheme solarized") diff --git a/home-manager/neovim/toggleterm.lua b/home-manager/neovim/toggleterm.lua deleted file mode 100644 index 37cbe4c..0000000 --- a/home-manager/neovim/toggleterm.lua +++ /dev/null @@ -1 +0,0 @@ -require("toggleterm").setup({ size = 32, open_mapping = [[]] }) diff --git a/home-manager/neovim/treesitter.lua b/home-manager/neovim/treesitter.lua deleted file mode 100644 index eca7e14..0000000 --- a/home-manager/neovim/treesitter.lua +++ /dev/null @@ -1,14 +0,0 @@ -require('nvim-treesitter.configs').setup({ - highlight = { - enable = true, - }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "v", - node_decremental = "<", - node_incremental = ">", - scope_incremental = false, - }, - }, -}) diff --git a/home-manager/nextcloud.nix b/home-manager/nextcloud.nix deleted file mode 100644 index 846a7cc..0000000 --- a/home-manager/nextcloud.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - services.nextcloud-client = { - enable = true; - startInBackground = true; - }; -} diff --git a/home-manager/starship.nix b/home-manager/starship.nix deleted file mode 100644 index 80923d4..0000000 --- a/home-manager/starship.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs.starship = { - enable = true; - settings = { - format = lib.concatStrings [ "$all" "$directory" "$character" ]; - hostname.format = "[$ssh_symbol$hostname]($style) "; - }; - }; -} diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix deleted file mode 100644 index f7c877c..0000000 --- a/home-manager/sway/default.nix +++ /dev/null @@ -1,148 +0,0 @@ -{ config, lib, pkgs, user, ... }: -let - font.name = "DejaVu Sans Mono"; - font.size = 12.0; - lock_command = "${pkgs.swaylock-effects}/bin/swaylock --daemonize --screenshots --effect-blur 8x2 --ignore-empty-password --show-failed-attempts"; - swaymsg = "${pkgs.sway}/bin/swaymsg"; -in -{ - imports = [ - ./i3status-rust.nix - ./dunst.nix - ]; - - home.packages = with pkgs; [ - xdg-utils - shotman - wl-clipboard - ]; - - programs.fuzzel = { - enable = true; - settings = { - main = { - terminal = "${pkgs.kitty}/bin/kitty"; - layer = "overlay"; - font = "DejaVu Sans Mono:size=12"; - }; - colors = { - background = "002b36ff"; - border = "ffffffaa"; - }; - }; - }; - - programs.swaylock = { - enable = true; - package = pkgs.swaylock-effects; - }; - - home.pointerCursor = { - name = "Adwaita"; - package = pkgs.gnome.adwaita-icon-theme; - size = 24; - x11 = { - enable = true; - defaultCursor = "Adwaita"; - }; - }; - - services.swayidle = { - enable = true; - events = [ - { event = "before-sleep"; command = lock_command; } - ]; - timeouts = [ - { timeout = 900; command = "${swaymsg} output '*' power off"; resumeCommand = "${swaymsg} output '*' power on"; } - { timeout = 1000; command = lock_command; } - ]; - }; - - services.swayosd.enable = true; - - services.poweralertd.enable = true; - - wayland.windowManager.sway = { - enable = true; - - config = rec { - modifier = "Mod4"; - terminal = "${pkgs.kitty}/bin/kitty"; - - input = { - "type:keyboard" = { - xkb_layout = "de"; - xkb_variant = "nodeadkeys"; - xkb_options = "caps:escape"; - }; - "type:touchpad" = { - natural_scroll = "enabled"; - tap = "enabled"; - accel_profile = "flat"; - dwt = "enabled"; - }; - }; - - seat = { - "*" = { - hide_cursor = "5000"; - }; - - }; - - defaultWorkspace = "1"; - - focus.newWindow = "urgent"; - - floating.criteria = [{ app_id = "zoom"; floating = true; }]; - - fonts = { - names = [ font.name ]; - size = font.size; - }; - - bars = [{ - mode = "hide"; - position = "top"; - statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml"; - - fonts = { - names = [ font.name ]; - size = font.size; - }; - }]; - - menu = "${pkgs.fuzzel}/bin/fuzzel"; - - keybindings = - let - modifier = config.wayland.windowManager.sway.config.modifier; - in - lib.mkOptionDefault { - "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; - "${modifier}+Shift+s" = "exec shotman --capture region --copy"; - "${modifier}+l" = "exec ${lock_command}"; - "${modifier}+Shift+m" = "output '*' power off, output '*' power on, exec ${pkgs.kanshi}/bin/kanshictl reload"; - - "--release Caps_Lock" = "exec swayosd --caps-lock"; - - "XF86AudioRaiseVolume" = "exec swayosd --output-volume raise"; - "XF86AudioLowerVolume" = "exec swayosd --output-volume lower"; - "XF86AudioMute" = "exec swayosd --output-volume mute-toggle"; - "XF86AudioMicMute" = "exec swayosd --input-volume mute-toggle"; - }; - - assigns = { - "6" = [{ class = "^\.zoom $"; }]; - }; - - startup = [ - { command = "keepassxc"; } - { command = "kitty"; } - { command = "element-desktop"; } - { command = "thunderbird"; } - { command = "firefox"; } - ]; - }; - }; -} diff --git a/home-manager/sway/dunst.nix b/home-manager/sway/dunst.nix deleted file mode 100644 index f7078d5..0000000 --- a/home-manager/sway/dunst.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ config, lib, pkgs, user, ... }: -{ - services.dunst = { - enable = true; - settings = { - global = { - follow = "keyboard"; - font = "DejaVu Sans Mono 11"; - frame_width = 1; - }; - - urgency_low = { - frame_color = "#268bd2"; - foreground = "#eee8d5"; - background = "#002b36"; - timeout = 4; - }; - - urgency_normal = { - frame_color = "#859900"; - foreground = "#eee8d5"; - background = "#002b36"; - timeout = 6; - }; - - urgency_critical = { - frame_color = "#dc322f"; - foreground = "#eee8d5"; - background = "#002b36"; - timeout = 8; - }; - }; - }; -} diff --git a/home-manager/sway/i3status-rust.nix b/home-manager/sway/i3status-rust.nix deleted file mode 100644 index 3e11c82..0000000 --- a/home-manager/sway/i3status-rust.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs.i3status-rust = { - enable = true; - bars = { - default = { - theme = "solarized-dark"; - icons = "awesome6"; - - blocks = [ - { - block = "net"; - format = " $icon { ($ssid) |}"; - click = [{ - button = "left"; - cmd = "${pkgs.iwgtk}/bin/iwgtk"; - }]; - } - { - block = "battery"; - missing_format = ""; - format = " $icon {($time h) |}$percentage "; - } - { - block = "time"; - interval = 60; - format = " $icon $timestamp.datetime(f:'%a %d.%m %R') "; - } - ]; - }; - }; - }; -} diff --git a/home-manager/zoxide.nix b/home-manager/zoxide.nix deleted file mode 100644 index 87d74ba..0000000 --- a/home-manager/zoxide.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, lib, pkgs, user, theme, ... }: - -{ - programs.zoxide = { - enable = true; - enableZshIntegration = true; - }; -} - diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix deleted file mode 100644 index a33a598..0000000 --- a/home-manager/zsh.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ config, lib, pkgs, user, theme, ... }: -let - zsh_autosuggest_highlight_style = if theme == "light" then "fg=180" else "fg=10"; -in -{ - programs.zsh = { - enable = true; - # enableAutosuggestions = true; - # enableCompletion = true; - history.size = 10000; - - initExtra = '' - function set_win_title(){ - local TITLE=$(git config --get remote.origin.url || echo "$PWD") - echo -ne "\033]0; $(basename "$TITLE") \007" - } - - precmd_functions+=(set_win_title) - ''; - - sessionVariables = { - ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style; - }; - - shellAliases = { - ls = "eza --group-directories-first --git"; - neovide = "neovide --multigrid"; - xclip = "xclip -selection clipboard"; - }; - }; -} diff --git a/home-mandlm b/home-mandlm new file mode 160000 index 0000000..ad3b94c --- /dev/null +++ b/home-mandlm @@ -0,0 +1 @@ +Subproject commit ad3b94cefa37c0053988d1f4cd9b92129a76e0cb diff --git a/home-mandlm.nix b/home-mandlm.nix index a47b32f..3d72365 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, user, theme, ... }: +{ pkgs, user, ... }: { home = { @@ -42,19 +42,19 @@ programs.home-manager.enable = true; imports = [ - ./home-manager/nextcloud.nix - ./home-manager/firefox.nix - ./home-manager/fzf.nix - ./home-manager/git.nix - ./home-manager/kitty.nix - ./home-manager/neovim - ./home-manager/gpg - ./home-manager/carapace.nix - ./home-manager/zsh.nix - ./home-manager/starship.nix - ./home-manager/sway - ./home-manager/direnv.nix - ./home-manager/bat.nix - ./home-manager/zoxide.nix + ./home-mandlm/nextcloud.nix + ./home-mandlm/firefox.nix + ./home-mandlm/fzf.nix + ./home-mandlm/git.nix + ./home-mandlm/kitty.nix + ./home-mandlm/neovim + ./home-mandlm/gpg + ./home-mandlm/carapace.nix + ./home-mandlm/zsh.nix + ./home-mandlm/starship.nix + ./home-mandlm/sway + ./home-mandlm/direnv.nix + ./home-mandlm/bat.nix + ./home-mandlm/zoxide.nix ]; }