From e6718bd6298af2f6d540d97ab184fab5ab4d164b Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 5 Feb 2022 01:21:32 +0100 Subject: add minimal home manager config (mostly to reduce hassle / build times for smaller machines) --- home/home.nix | 137 +++++++++++++++++----------------------------------------- 1 file changed, 39 insertions(+), 98 deletions(-) (limited to 'home/home.nix') diff --git a/home/home.nix b/home/home.nix index f61e7d8..1846e12 100644 --- a/home/home.nix +++ b/home/home.nix @@ -7,10 +7,9 @@ imports = [ ./packages.nix ./unstable.nix + ./home-minimal.nix ]; - home.keyboard.options = [ "caps:escape" ]; - programs.msmtp.enable = true; programs.mbsync.enable = true; programs.mu.enable = true; @@ -34,35 +33,13 @@ }; programs.bash = { - enable = true; - historyControl = [ "ignoredups" "ignorespace" ]; - historyFileSize = 10000; - - # set shell prompt & tty for the gnu pinentry (otherwise gnupg will crash) - initExtra = '' - export GPG_TTY=`tty` - # this shouldn't be necessary, but apparently nix is broken ... - NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:}$NIX_PATH - PS1='\[\033[1;36m\] >>> [\j|\u@\w]\$: \[\033[00m\]' - ''; - shellAliases = { "lrz-vpn" = "sudo openconnect https://asa-cluster.lrz.de -g AnyConnect"; - ll = "ls -slF"; news = "newsboat"; pj = "pijul"; }; }; - programs.starship = { - enable = true; - enableBashIntegration = true; - enableFishIntegration = true; - settings = { - directory.truncation_length = 10; - }; - }; - programs.nushell = { enable = true; settings = { @@ -76,23 +53,12 @@ }; programs.fish = { - enable = true; shellAliases = { "lrz-vpn" = "sudo openconnect https://asa-cluster.lrz.de"; news = "newsboat"; pj = "pijul"; - nix-shell = "nix-shell --command fish"; - le = "exa"; - ll = "exa -lh --icons"; - llt = "exa -lh --tree --icons"; - lt = "exa --tree --icons"; agenda = "almanac month ~/.cache/feedsync/*"; }; - functions = { - fish_greeting = { - body = ""; - }; - }; }; programs.kitty = { @@ -101,6 +67,44 @@ background_opacity 0.8 ''; }; + + programs.neovim = { + enable = true; + viAlias = true; + plugins = with pkgs; [ + (vimPlugins.nvim-treesitter.withPlugins + (plugins: [ tree-sitter-grammars.tree-sitter-nix ])) + ]; + generatedConfigViml = '' + lua <