os/users/b12f/session-variables.nix
Benjamin Bädorf 03685e9887
All checks were successful
continuous-integration/drone/push Build is passing
chore: rename ben to b12f
2023-09-12 18:46:36 +02:00

22 lines
584 B
Nix

{
config,
pkgs,
...
}: let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
DRONE_RPC_PROTO = "https";
DRONE_RPC_HOST = "ci.b12f.io";
in {
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
home.sessionVariables = {
inherit DRONE_RPC_HOST;
inherit DRONE_RPC_PROTO;
DRONE_SERVER = DRONE_RPC_PROTO + "://" + DRONE_RPC_HOST;
RESTIC_REPOSITORY = "sftp:root@backup.b12f.io:/media/internal/backups";
RESTIC_PASSWORD_COMMAND = "secret-tool lookup restic repository-password";
};
};
}