2023-09-24 14:56:07 +02:00
|
|
|
[
|
|
|
|
# set stateVersion
|
|
|
|
{
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
}
|
|
|
|
# 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;
|
2023-12-03 13:12:48 +01:00
|
|
|
syntaxHighlighting.enable = true;
|
2023-09-24 14:56:07 +02:00
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableVteIntegration = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
# common git config
|
|
|
|
{
|
|
|
|
programs = {
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig.init.defaultBranch = "main";
|
|
|
|
};
|
|
|
|
|
|
|
|
gh = {
|
|
|
|
enable = true;
|
2023-12-03 13:12:48 +01:00
|
|
|
gitCredentialHelper.enable = true;
|
2023-09-24 14:56:07 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2023-12-16 12:38:20 +01:00
|
|
|
# Templates
|
|
|
|
{
|
|
|
|
home.file."Templates/Empty file".text = "";
|
|
|
|
}
|
2023-09-24 14:56:07 +02:00
|
|
|
]
|