devos/profiles/peerix/default.nix

25 lines
536 B
Nix
Raw Permalink Normal View History

2022-07-03 01:06:34 +02:00
{ config, pkgs, ... }:
let
2022-06-17 23:17:33 +02:00
peerix_user = "peerix";
in
{
2022-07-03 01:06:34 +02:00
users.groups.${peerix_user} = { };
2022-06-17 23:17:33 +02:00
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;
2022-06-18 00:07:23 +02:00
package = pkgs.peerix;
2022-06-17 23:17:33 +02:00
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
}