32 lines
581 B
Nix
32 lines
581 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
{
|
|
options = {
|
|
tools.coding = {
|
|
enable = mkEnableOption "Enable coding tools";
|
|
};
|
|
};
|
|
|
|
config = mkIf config.tools.coding.enable {
|
|
programs.git = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
config = {
|
|
init.defaultBranch = "master";
|
|
user = {
|
|
email = "git@nettika.cat";
|
|
name = "Nettika";
|
|
};
|
|
credential.helper = "store";
|
|
};
|
|
};
|
|
programs.nano = {
|
|
enable = true;
|
|
nanorc = ''
|
|
set autoindent
|
|
set linenumbers
|
|
'';
|
|
};
|
|
};
|
|
}
|