chore(nix): add tt-rss secrets
This commit is contained in:
parent
7f89513b6c
commit
8570c7ee33
|
@ -19,7 +19,6 @@
|
|||
../../profiles/nixpkgs-dev.nix
|
||||
../../profiles/taskserver.nix
|
||||
../../profiles/tt-rss.nix
|
||||
../../secrets/tt-rss.nix
|
||||
];
|
||||
|
||||
deployment.targetHost = "172.105.171.16";
|
||||
|
|
|
@ -5,12 +5,20 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
age.secrets = {
|
||||
tt-rss-dbpass = {
|
||||
file = ../secrets/tt-rss-dbpass.age;
|
||||
owner = "tt_rss";
|
||||
group = "tt_rss";
|
||||
mode = "0640";
|
||||
};
|
||||
};
|
||||
services.tt-rss = {
|
||||
enable = true; # Enable TT-RSS
|
||||
database = {
|
||||
# Configure the database
|
||||
type = "pgsql"; # Database type
|
||||
passwordFile = "/run/keys/tt-rss-dbpass"; # Where to find the password
|
||||
passwordFile = config.age.secrets.tt-rss-dbpass; # Where to find the password
|
||||
};
|
||||
email = {
|
||||
fromAddress = "news@mcwhirter.io"; # Address for outgoing email
|
||||
|
@ -39,16 +47,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
systemd = {
|
||||
services = {
|
||||
tt-rss = {
|
||||
# Ensure tt-rss starts after nixops keys are loaded
|
||||
after = ["tt-rss-dbpass-key.service"];
|
||||
wants = ["tt-rss-dbpass-key.service"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.postgresqlBackup.databases = ["tt_rss"];
|
||||
|
||||
services.nginx = {
|
||||
|
@ -65,6 +63,4 @@
|
|||
};
|
||||
|
||||
security.acme.certs = {"news.mcwhirter.io".email = "craige@mcwhirter.io";};
|
||||
|
||||
users.groups.keys.members = ["tt_rss"]; # Required due to NixOps issue #1204
|
||||
}
|
||||
|
|
|
@ -45,4 +45,5 @@ in {
|
|||
"xander.age".publicKeys = ops ++ systems;
|
||||
"nextcloud-dbpass.age".publicKeys = ops ++ systems;
|
||||
"nextcloud-adminpass.age".publicKeys = ops ++ systems;
|
||||
"tt-rss-dbpass.age".publicKeys = ops ++ systems;
|
||||
}
|
||||
|
|
35
secrets/tt-rss-dbpass.age
Normal file
35
secrets/tt-rss-dbpass.age
Normal file
|
@ -0,0 +1,35 @@
|
|||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IEZCOVgxUSBsTzdO
|
||||
clFOUVMzRGlUTkF6eGo2djFOWHhpWkpacG5GbEFXZHNKSHBBREZvCnRvSEVqSUpF
|
||||
Yk5zNDNkY21jejM1OFNxUTNGMEVtRnliNzZvZndyZnliWFkKLT4gc3NoLWVkMjU1
|
||||
MTkgSk00dDZBIFBVV1doL1JrVEY5L1JXRExSQ1o3ZHYvaFF5eFcxcHVERjNHWExW
|
||||
VGc2Z0kKaitHRHZ0U0hOeUpJTHJaUStKTk9qbHo4aU9nOEJBMytrVUhDM1FNSTZz
|
||||
dwotPiBzc2gtZWQyNTUxOSA5aEV5RFEgeDB1TmpjTmtzU1F6VjFBNUMxQWcxcFFV
|
||||
MTA3d0huYlJ0Nk44Ym5Kd2JWMApDcE1GM1pKaW9TWW1Nd1QzclVlNHVDeGowVjhZ
|
||||
T2F1NXZaUnQ4WWVHbVhZCi0+IHNzaC1lZDI1NTE5IHU3WjNqdyBNVXhYMW1DTXl1
|
||||
QmJ0dGN6UDRzb0cxeXdMN21VdzJuekZmOGZwQmIxb1dBCi81ZC9TM3ZOcEdrMVpG
|
||||
NzFKWlFOeVFkVHk0MVBBNS9ZMlVkK1RML3poZG8KLT4gc3NoLWVkMjU1MTkgV2c5
|
||||
M3J3IFRvS0FUUStKdmRXbkRhemdwM2NKSUw3dmtKZkZ3Vk1VbllEZGpVOVVKUjAK
|
||||
b1dnLzBEZGdSY0V4a05xVzJSYXdCTUdvVm9TL2ZjdGJwQ3lmc01hdEVQcwotPiBz
|
||||
c2gtZWQyNTUxOSBQeEt3alEgb1ptc1J5ZWFsTEFETFd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