home: cleanup and documentat it

This commit is contained in:
genofire 2021-10-09 01:46:55 +02:00
parent 9d711fae43
commit 64fde2493d
3 changed files with 91 additions and 72 deletions

16
home/README.md Normal file
View File

@ -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`

72
home/default.nix Normal file
View File

@ -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 <C-n> :NERDTreeToggle<CR>";
}
];
};
}

View File

@ -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 <C-n> :NERDTreeToggle<CR>";
}
];
};
}