devos/profiles/peerix/default.nix

24 lines
502 B
Nix
Raw Normal View History

2022-06-17 23:17:33 +02:00
{config, ...}:
let
peerix_user = "peerix";
in
{
users.groups.${peerix_user} = {};
users.users.${peerix_user} = {
group = peerix_user;
isSystemUser = true;
};
age.secrets.binary-cache-secret = {
owner = peerix_user;
file = ../../secrets/binary-cache-secret.age;
};
services.peerix = {
enable = true;
user = peerix_user;
privateKeyFile = config.age.secrets.binary-cache-secret.path;
publicKey = (builtins.readFile ../../secrets/binary-cache-pub);
};
2022-06-16 19:22:10 +02:00
}