change sops key file location
This commit is contained in:
parent
c7808946ce
commit
8688fecb42
2 changed files with 6 additions and 11 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
};
|
};
|
||||||
keyFile = lib.mkOption {
|
keyFile = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
default = "/var/sops/key.txt";
|
||||||
description = ''
|
description = ''
|
||||||
path to age key file
|
path to age key file
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,10 @@
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
sops.defaultSopsFile = rootPath + "/secrets/general.yaml";
|
sops.defaultSopsFile = rootPath + "/secrets/general.yaml";
|
||||||
sops.age =
|
sops.age = {
|
||||||
let
|
keyFile = "/var/sops/key.txt";
|
||||||
unixName = config.youthlic.home-manager.unixName;
|
sshKeyPaths = [ ];
|
||||||
cfg = config.users.users."${unixName}";
|
generateKey = false;
|
||||||
in
|
};
|
||||||
{
|
|
||||||
keyFile = "${cfg.home}/.config/sops/age/keys.txt";
|
|
||||||
sshKeyPaths = [ ];
|
|
||||||
generateKey = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue