pinwheel: Extract work related config to work module
This commit is contained in:
26
hosts/pinwheel/modules/work/default.nix
Normal file
26
hosts/pinwheel/modules/work/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ ... }:
|
||||
{
|
||||
home-manager.users.alex = {
|
||||
programs.git = {
|
||||
includes = [
|
||||
{
|
||||
path = ./work-gitconfig;
|
||||
condition = "gitdir:~/code/work/";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.go = {
|
||||
goPrivate = [ "gitlab.com/zebware/*" ];
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
"netrc" = {
|
||||
file = ../../../../secrets/pinwheel/netrc.age;
|
||||
path = "/home/alex/.netrc";
|
||||
owner = "alex";
|
||||
group = "users";
|
||||
};
|
||||
};
|
||||
}
|
||||
3
hosts/pinwheel/modules/work/work-gitconfig
Normal file
3
hosts/pinwheel/modules/work/work-gitconfig
Normal file
@@ -0,0 +1,3 @@
|
||||
[user]
|
||||
name = Alexander Heldt
|
||||
email = alexander.heldt@zebware.com
|
||||
Reference in New Issue
Block a user