diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/aerospace.nix | 21 | ||||
| -rw-r--r-- | modules/emacs.nix | 11 | ||||
| -rw-r--r-- | modules/nextcloud.nix | 37 | ||||
| -rw-r--r-- | modules/nvf.nix | 123 | ||||
| -rw-r--r-- | modules/wezterm.nix | 26 |
5 files changed, 0 insertions, 218 deletions
diff --git a/modules/aerospace.nix b/modules/aerospace.nix deleted file mode 100644 index 6c1164e..0000000 --- a/modules/aerospace.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, pkgs, lib, ...}: - -{ - options.aerospace.enable = lib.mkEnableOption "Enalbe aerospace and setup"; - config = lib.mkIf config.aerospace.enable { - programs.aerospace = { - enable = true; - userSettings = { - gaps = { - outer = 5; - }; - mode.main.binding = { - alt-h = "focus left"; - alt-j = "focus down"; - alt-k = "focus up"; - alt-l = "focus right"; - }; - }; - }; - }; -} diff --git a/modules/emacs.nix b/modules/emacs.nix deleted file mode 100644 index 661e065..0000000 --- a/modules/emacs.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.emacs.enable = lib.mkEnableOption "Enable emacs and setup"; - config = lib.mkIf config.emacs.enable { - programs.emacs = { - enable = true; - package = pkgs.emacs; - }; - }; -}
\ No newline at end of file diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix deleted file mode 100644 index 81561d9..0000000 --- a/modules/nextcloud.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.nextcloud.enable = lib.mkEnableOption "Enable nextcloud and setup"; - config = lib.mkIf config.nextcloud.enable { - home.file.".netrc".text = ''default - login exmaple - password test123 - ''; - - home.packages = pkgs.nextcloud-client; - - systemd.user = { - services.nextcloud-autosync = { - Unit = { - Description = "Auto sync Nextcloud"; - After = "network-online.target"; - }; - Service = { - Type = "simple"; - ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n https://cloud.schererleander.de"; - TimeoutStopSec = "180"; - KillMode = "process"; - KillSignal = "SIGINT"; - }; - Install.WantedBy = ["multi-user.target"]; - }; - timers.nextcloud-autosync = { - Unit.Description = "Automatic sync files with Nextcloud when booted up after 5 minutes then rerun every 60 minutes"; - Timer.OnBootSec = "5min"; - Timer.OnUnitActiveSec = "60min"; - Install.WantedBy = ["multi-user.target" "timers.target"]; - }; - startServices = true; - }; - }; -}
\ No newline at end of file diff --git a/modules/nvf.nix b/modules/nvf.nix deleted file mode 100644 index ec567df..0000000 --- a/modules/nvf.nix +++ /dev/null @@ -1,123 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.nvf.enable = lib.mkEnableOption "Setup nvf"; - config = lib.mkIf config.nvf.enable { - programs.nvf = { - enable = true; - settings = { - vim = { - theme.enable = true; - theme.name = "gruvbox"; - theme.transparent = true; - theme.style = "dark"; - - options = { - clipboard = "unnamedplus"; - tabstop = 2; - shiftwidth = 2; - expandtab = true; - autoindent = true; - mouse = "a"; - }; - - telescope.enable = true; - autocomplete.nvim-cmp.enable = true; - - mini = { - starter = { - enable = true; - setupOpts = { - header = " /l、 \n" + - "(゚、 。 7 \n" + - " l ~ ヽ \n" + - " じしf_,)ノ \n"; - footer = " "; - }; - }; - }; - - autopairs.nvim-autopairs.enable = true; - - git.enable = true; - - lsp = { - enable = true; - formatOnSave = true; - lspkind.enable = true; - lspSignature.enable = true; - }; - - diagnostics = { - enable = true; - config = { - signs = { - text = { - "vim.diagnostic.severity.ERROR" = " "; - "vim.diagnostic.severity.WARN" = " "; - "vim.diagnostic.severity.HINT" = " "; - "vim.diagnostic.severity.INFO" = " "; - }; - }; - underline = true; - virtual_lines = true; - virtual_text = { - format = lib.generators.mkLuaInline '' - function(diagnostic) - return string.format("%s (%s)", diagnostic.message, diagnostic.source) - end - ''; - }; - }; - nvim-lint.enable = true; - }; - - languages = { - enableTreesitter = true; - - nix.enable = true; - markdown.enable = true; - - clang.enable = true; - css.enable = true; - html.enable = true; - java.enable = true; - ts.enable = true; - go.enable = true; - lua.enable = true; - python.enable = true; - typst.enable = true; - # fails on darwin - #tailwind.enable = true; - }; - - formatter.conform-nvim.enable = true; - - visuals = { - nvim-web-devicons.enable = true; - }; - - snippets.luasnip.enable = true; - - binds = { - whichKey.enable = true; - cheatsheet.enable = true; - }; - - ui = { - borders.enable = false; - }; - - autocmds = [ - { - event = ["VimEnter"]; - command = "highlight StatusLine guibg=none | highlight StatusLineNC guibg=none"; - } - ]; - - statusline.lualine.enable = true; - }; - }; - }; - }; -} diff --git a/modules/wezterm.nix b/modules/wezterm.nix deleted file mode 100644 index b0fca5a..0000000 --- a/modules/wezterm.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.wezterm.enable = lib.mkEnableOption "Enable wezterm and setup"; - config = lib.mkIf config.wezterm.enable { - programs.wezterm = { - enable = true; - enableZshIntegration = true; - extraConfig = '' - local wezterm = require 'wezterm' - - local config = wezterm.config_builder() - - config.font = wezterm.font "SpaceMono Nerd Font Mono" - config.font_size = 10 - config.use_fancy_tab_bar = true - config.hide_tab_bar_if_only_one_tab = true - config.window_background_opacity = 0.9 - config.exit_behavior = 'Close' - config.exit_behavior_messaging = 'None' - - return config - ''; - }; - }; -} |
