Compare commits

..

1 commit

Author SHA1 Message Date
6625e82d12 Use sops for private key distribution 2024-03-21 19:32:01 +01:00

View file

@ -132,6 +132,7 @@ in {
}; };
}; };
environment.persistence.${config.impermanence.name} = { environment.persistence.${config.impermanence.name} = {
/*
users.fsaccount.directories = [ users.fsaccount.directories = [
{ {
directory = ".ssh"; # SSH Key with access to FS Account and known_hosts directory = ".ssh"; # SSH Key with access to FS Account and known_hosts
@ -139,6 +140,18 @@ in {
} }
]; ];
}; };
*/
users.fsaccount.files = [
{
file = ".ssh/known_hosts";
parentDirectory = {
mode = "u=rwx,g=,o=";
user = "fsaccount";
group = "users";
};
}
];
};
sops.secrets.backupKey = { sops.secrets.backupKey = {
sopsFile = ../machines/bragi/backupKey.yaml; sopsFile = ../machines/bragi/backupKey.yaml;
owner = config.users.users.fsaccount.name; owner = config.users.users.fsaccount.name;