initial nixos-config
This commit is contained in:
16
home/modules/cli/bash.nix
Normal file
16
home/modules/cli/bash.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ 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/modules/cli/bat.nix
Normal file
6
home/modules/cli/bat.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config.theme = "base16";
|
||||
};
|
||||
}
|
8
home/modules/cli/default.nix
Normal file
8
home/modules/cli/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
imports = [
|
||||
./bash.nix
|
||||
./git.nix
|
||||
./bat.nix
|
||||
];
|
||||
}
|
||||
|
8
home/modules/cli/git.nix
Normal file
8
home/modules/cli/git.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "crurak";
|
||||
userEmail = "s.spangenberg@posteo.de";
|
||||
ignores = [ ".direnv" "result"];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user