pinwheel: Extract work related config to work module

This commit is contained in:
Alexander Heldt
2023-09-27 15:30:37 +02:00
parent bcd4fc418f
commit 7d54370900
5 changed files with 28 additions and 13 deletions

View File

@@ -35,6 +35,8 @@
./modules/spotify ./modules/spotify
./modules/podman ./modules/podman
./modules/k8s ./modules/k8s
./modules/work
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -19,13 +19,4 @@
home.stateVersion = "23.05"; home.stateVersion = "23.05";
}; };
}; };
age.secrets = {
"netrc" = {
file = ../../secrets/pinwheel/netrc.age;
path = "/home/alex/.netrc";
owner = "alex";
group = "users";
};
};
} }

View File

@@ -6,10 +6,6 @@
includes = [ includes = [
{ path = ./gitconfig; } { path = ./gitconfig; }
{
path = ./work-gitconfig;
condition = "gitdir:~/code/work/";
}
]; ];
}; };
}; };

View 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";
};
};
}