mirror of
https://github.com/genebean/dots.git
synced 2026-05-30 23:35:22 -04:00
Deploy Cups Collector
This commit is contained in:
parent
9ee2076a12
commit
79fd32603f
5 changed files with 118 additions and 8 deletions
44
modules/hosts/nixos/nixnuc/cup-collector.nix
Normal file
44
modules/hosts/nixos/nixnuc/cup-collector.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
home_domain = "home.technicalissues.us";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
cupCollector = {
|
||||
enable = true;
|
||||
# dataDir = "/var/lib/cup-collector";
|
||||
domain = "cups.${home_domain}";
|
||||
envFile = config.sops.secrets.cup_collector_env.path;
|
||||
households = [
|
||||
{
|
||||
name = "Liverman Family";
|
||||
slug = "liverman_family";
|
||||
}
|
||||
];
|
||||
migrationsDir = inputs.cup-collector.packages.${pkgs.stdenv.hostPlatform.system}.migrations;
|
||||
pbBindIp = "0.0.0.0";
|
||||
pbPort = 8091; # override default due to conflict
|
||||
pocketidIssuerUrl = config.services.pocket-id.settings.APP_URL;
|
||||
port = 3010; # override default due to conflict
|
||||
};
|
||||
|
||||
restic.backups.daily = {
|
||||
paths = [
|
||||
config.services.cupCollector.dataDir
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
secrets.cup_collector_env.restartUnits = [
|
||||
"cup-collector-pb-init.service"
|
||||
"cup-collector.service"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue