pinwheel: Extract work related config to work module
This commit is contained in:
@@ -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" ];
|
||||||
|
|||||||
@@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,6 @@
|
|||||||
|
|
||||||
includes = [
|
includes = [
|
||||||
{ path = ./gitconfig; }
|
{ path = ./gitconfig; }
|
||||||
{
|
|
||||||
path = ./work-gitconfig;
|
|
||||||
condition = "gitdir:~/code/work/";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user