Add tools.coding option
This commit is contained in:
parent
7dd42c0382
commit
84e220c8a7
5 changed files with 53 additions and 48 deletions
31
common/coding.nix
Normal file
31
common/coding.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue