Add custom impermanence module
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
username ? throw "username argument is required",
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{
|
||||
config,
|
||||
@@ -8,11 +9,10 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
userConfig = config.users.users.${username};
|
||||
hmConfig = config.home-manager.users.${username};
|
||||
userConfig = config.users.users.${user};
|
||||
in
|
||||
{
|
||||
home-manager.users.${username} = {
|
||||
home-manager.users.${user} = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
@@ -30,7 +30,7 @@ in
|
||||
core.fsmonitor = true;
|
||||
feature.manyFiles = true;
|
||||
fetch.writeCommitGraph = true;
|
||||
http.cookiefile = "${hmConfig.xdg.configHome}/git/cookies";
|
||||
http.cookiefile = "${home}/.config/git/cookies";
|
||||
};
|
||||
|
||||
hooks = {
|
||||
@@ -45,8 +45,8 @@ in
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
"git/credentials".path = "${hmConfig.xdg.configHome}/git/credentials";
|
||||
"git/cookies".path = "${hmConfig.xdg.configHome}/git/cookies";
|
||||
"git/credentials".path = "${home}/.config/git/credentials";
|
||||
"git/cookies".path = "${home}/.config/git/cookies";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user