laptop config, flakes config (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
options.modules.git = {
|
||||
enable = mkOption { type = types.bool; default = false; };
|
||||
};
|
||||
|
||||
config = mkIf config.modules.git.enable {
|
||||
home.packages = with pkgs; [ git ];
|
||||
|
||||
home.file.".gitconfig" = {
|
||||
executable = false;
|
||||
text = ''
|
||||
[user]
|
||||
email = david@dvdt.dev
|
||||
name = David Lick
|
||||
|
||||
[color]
|
||||
ui = true
|
||||
'';
|
||||
};
|
||||
|
||||
home.file.".ssh/config" = {
|
||||
executable = false;
|
||||
text = ''
|
||||
Host git.dvdt.dev
|
||||
User git
|
||||
Hostname git.dvdt.dev
|
||||
IdentityFile ~/.ssh/gitea_ed25519
|
||||
IdentitiesOnly true
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user