feat: more modules
This commit is contained in:
parent
2c70c86c8e
commit
98b71eeddc
5 changed files with 83 additions and 22 deletions
24
computers/shared/git.nix
Normal file
24
computers/shared/git.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.alqueva.git;
|
||||
in {
|
||||
options.alqueva.git = {
|
||||
enable = lib.mkEnableOption "git";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config = {
|
||||
user = {
|
||||
name = "Artur Manuel";
|
||||
email = "balkenix@outlook.com";
|
||||
signingKey = "~/.ssh/id_ed25519";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue