nixos-configuration/home/shared-modules.nix

56 lines
1 KiB
Nix
Raw Permalink Normal View History

2023-09-24 14:56:07 +02:00
[
# set stateVersion
2024-10-27 12:33:35 +01:00
{ home.stateVersion = "22.11"; }
2023-09-24 14:56:07 +02:00
# make nano the default editor
{
home = {
sessionVariables.EDITOR = "nano";
file.".nanorc".text = ''
set linenumbers
set mouse
'';
};
}
# command line niceness
{
programs = {
command-not-found.enable = true;
dircolors.enable = true;
zsh = {
enable = true;
syntaxHighlighting.enable = true;
2024-06-21 17:13:58 +02:00
autosuggestion.enable = true;
2023-09-24 14:56:07 +02:00
enableVteIntegration = true;
};
};
}
# common git config
{
programs = {
git = {
enable = true;
extraConfig.init.defaultBranch = "main";
};
gh = {
enable = true;
gitCredentialHelper.enable = true;
2023-09-24 14:56:07 +02:00
};
};
}
2023-12-16 12:38:20 +01:00
# Templates
{
2023-12-25 12:06:58 +01:00
home.file = {
"Templates/Empty file".text = "";
"Templates/Empty bash script".text = ''
#!/usr/bin/env bash
# abort on error, undefined variables
set -eu
# print commands before execution
set -x
'';
};
2023-12-16 12:38:20 +01:00
}
2023-09-24 14:56:07 +02:00
]