diff --git a/home/README.md b/home/README.md new file mode 100644 index 0000000..591c59a --- /dev/null +++ b/home/README.md @@ -0,0 +1,16 @@ +# Home-Manager + + +Create `~/.config/nixpkgs/home.nix` with: +```nix +{pkgs, ...}: +{ + imports = [ + ./repo/default.nix + ./repo/desktop.nix + ./repo/sway.nix + ]; +} +``` + +and run `home-manager switch` diff --git a/home/default.nix b/home/default.nix new file mode 100644 index 0000000..ec9e2cc --- /dev/null +++ b/home/default.nix @@ -0,0 +1,72 @@ +{pkgs, ...}: +{ + home.sessionVariables = { + EDITOR = "nvim"; + }; + + home.packages = with pkgs; [ + python3 + killall + htop + mosh + git + git-lfs + tig + tea + glab + figlet + grml-zsh-config + tmux + #neovim + xh + liboping # fix it + mtr + colordiff + git-annex + direnv + pure-prompt + #vimPlugins.nvim-lspconfig + #vimPlugins.nerdtree + go gcc libcap + go-langserver + pass + glow + ]; + + programs.zsh = { + enable = true; + enableAutosuggestions = true; + # broken: enableSyntaxHighlighting = true; + # grml and pure enabled .... + }; + + programs.git = { + enable = true; + userName= "genofire"; + userEmail = "geno+dev@fireorbit.de"; + signing = { + signByDefault = false; + key = "386ED1BF848ABB4A6B4A3C45FC83907C125BC2BC"; + }; + extraConfig = { + init.defaultBranch = "main"; + annex.sshcaching = true; + }; + }; + programs.neovim = { + enable = true; + extraConfig = '' + syntax on + set number relativenumber + ''; + plugins = with pkgs.vimPlugins; [ + nvim-lspconfig + airline + Syntastic + { + plugin = nerdtree; + config = "map :NERDTreeToggle"; + } + ]; + }; +} diff --git a/home/home.nix b/home/home.nix index 6202c4b..c3e8424 100644 --- a/home/home.nix +++ b/home/home.nix @@ -1,77 +1,8 @@ {pkgs, ...}: { imports = [ - ./desktop.nix - ./sway.nix + ./repo/default.nix + ./repo/desktop.nix + ./repo/sway.nix ]; - - home.sessionVariables = { - EDITOR = "nvim"; - }; - - home.packages = with pkgs; [ - python3 - killall - htop - mosh - git - git-lfs - tig - tea - glab - figlet - grml-zsh-config - tmux - #neovim - xh - liboping # fix it - mtr - colordiff - git-annex - direnv - pure-prompt - #vimPlugins.nvim-lspconfig - #vimPlugins.nerdtree - go gcc libcap - go-langserver - pass - glow - ]; - - programs.zsh = { - enable = true; - enableAutosuggestions = true; - # broken: enableSyntaxHighlighting = true; - # grml and pure enabled .... - }; - - programs.git = { - enable = true; - userName= "genofire"; - userEmail = "geno+dev@fireorbit.de"; - signing = { - signByDefault = false; - key = "386ED1BF848ABB4A6B4A3C45FC83907C125BC2BC"; - }; - extraConfig = { - init.defaultBranch = "main"; - annex.sshcaching = true; - }; - }; - programs.neovim = { - enable = true; - extraConfig = '' - syntax on - set number relativenumber - ''; - plugins = with pkgs.vimPlugins; [ - nvim-lspconfig - airline - Syntastic - { - plugin = nerdtree; - config = "map :NERDTreeToggle"; - } - ]; - }; }