add flake/home-manager and standard cli programs

This commit is contained in:
2023-08-02 21:37:21 +02:00
parent 1d385aa703
commit 7536cd5097
13 changed files with 307 additions and 0 deletions

14
home/bash.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, lib, pkgs, ...}: let
inherit (lib) mkIf;
hasNeovim = config.programs.neovim.enable;
in {
programs.bash = {
enable = true;
shellAliases = {
ll = "ls -lisah --color=auto";
".." = "cd ..";
vim = mkIf hasNeovim "nvim";
vi = mkIf hasNeovim "nvim";
};
};
}

6
home/bat.nix Normal file
View File

@ -0,0 +1,6 @@
{
programs.bat = {
enable = true;
config.theme = "base16";
};
}

8
home/default.nix Normal file
View File

@ -0,0 +1,8 @@
{
home-manager.sharedModules = [
./bash.nix
./bat.nix
./git.nix
./neovim.nix
];
}

8
home/git.nix Normal file
View File

@ -0,0 +1,8 @@
{
programs.git = {
enable = true;
userName = "crurak";
userEmail = "s.spangenberg@posteo.de";
ignores = [ ".direnv" "result"];
};
}

23
home/neovim.nix Normal file
View File

@ -0,0 +1,23 @@
{ config, pkgs, ...}:
{
home.sessionVariables.Editor = "nvim";
programs = {
neovim = {
enable = true;
extraConfig = ''
syntax enable
colorscheme gruvbox
set number relativenumber
highlight Comment cterm=italic gui=italic
hi Normal guibg=NONE ctermbg=NONE
'';
plugins = with pkgs.vimPlugins; [
vim-nix
gruvbox
];
};
};
}