Migrate to flakes

This commit is contained in:
2022-06-06 23:12:54 +02:00
parent 6ce94605b5
commit 1260e3ba3c
13 changed files with 100 additions and 7 deletions

View File

@@ -6,6 +6,7 @@
openDefaultPorts = true;
guiAddress = "0.0.0.0:8384";
dataDir = "/vault/syncthing";
key = config.age.secrets.syncthing.path;
devices = {
panacea.id =
"NF4SYEJ-RSGPDEF-CDEYC3A-JWZMKNC-KG4FVQP-CZ5HRFY-XM22BZD-N7B6VAH";

View File

@@ -7,7 +7,7 @@
rootUrl = "https://git.coolneng.duckdns.org";
database = {
type = "postgres";
passwordFile = "/var/keys/gitea";
passwordFile = config.age.secrets.gitea.path;
};
cookieSecure = true;
disableRegistration = true;

View File

@@ -4,7 +4,7 @@
# Miniflux configuration
services.miniflux = {
enable = true;
adminCredentialsFile = "/var/keys/miniflux";
adminCredentialsFile = config.age.secrets.miniflux.path;
config = {
BASE_URL = "https://rss.coolneng.duckdns.org";
RUN_MIGRATIONS = "1";

View File

@@ -41,7 +41,7 @@ in {
quiet = true;
protocol = "duckdns";
domains = [ "coolneng.duckdns.org" ];
passwordFile = "/var/keys/ddclient";
passwordFile = config.age.secrets.ddclient.path;
};
# Firewall configuration
@@ -73,7 +73,7 @@ in {
wg0 = {
ips = [ "10.8.0.1/24" ];
listenPort = wireguard_port;
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
privateKeyFile = config.age.secrets.wireguard.path;
peers = [
# panacea
{