Modules/Sops: Don't hardcode age keyFile path
This commit is contained in:
@ -235,6 +235,7 @@ with mylib.networking; {
|
|||||||
description = "Christoph";
|
description = "Christoph";
|
||||||
group = "users";
|
group = "users";
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
|
home = "/home/${username}";
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
|
|||||||
@ -26,7 +26,7 @@ in {
|
|||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
|
||||||
age = {
|
age = {
|
||||||
keyFile = lib.mkDefault "/home/${username}/.secrets/age/age.key";
|
keyFile = lib.mkDefault "${config.users.users.${username}.home}/.secrets/age/age.key";
|
||||||
generateKey = false;
|
generateKey = false;
|
||||||
sshKeyPaths = [];
|
sshKeyPaths = [];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user