mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Move modules in programs/services subfolders
This commit is contained in:
parent
2ff87c8404
commit
211ca98e92
38 changed files with 0 additions and 0 deletions
|
|
@ -1,44 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.custom.programs.git.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.programs.git.enable {
|
||||
sops.secrets = {
|
||||
"ssh-key/github" = { };
|
||||
"ssh-key/hda-gitlab" = { };
|
||||
};
|
||||
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
|
||||
userName = "SebastianStork";
|
||||
userEmail = "sebastian.stork@pm.me";
|
||||
extraConfig.init.defaultBranch = "main";
|
||||
|
||||
includes = [
|
||||
{
|
||||
condition = "gitdir:~/Projects/h-da/**";
|
||||
contents = {
|
||||
user = {
|
||||
name = "Sebastian Stork";
|
||||
email = "sebastian.stork@stud.h-da.de";
|
||||
};
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"github.com".identityFile = config.sops.secrets."ssh-key/github".path;
|
||||
"code.fbi.h-da.de".identityFile = config.sops.secrets."ssh-key/hda-gitlab".path;
|
||||
};
|
||||
};
|
||||
|
||||
lazygit.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue