mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
112 lines
2.4 KiB
Nix
112 lines
2.4 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./matomo.nix
|
|
./pun-sort.nix
|
|
./radio.nix
|
|
./panoptikon.nix
|
|
./hledger.nix
|
|
./go-webring.nix
|
|
./gemini.nix
|
|
./wallabag.nix
|
|
./nethack.nix
|
|
../../configs/monitoring.nix
|
|
../../configs/mycelium.nix
|
|
../../configs/tor.nix
|
|
../../configs/save-space.nix
|
|
../../configs/spacetime.nix
|
|
../../configs/retiolum.nix
|
|
../../configs/sshd.nix
|
|
../../configs/nix.nix
|
|
../../configs/admin-essentials.nix
|
|
];
|
|
|
|
niveum.passport = {
|
|
enable = true;
|
|
introductionHTML = '''';
|
|
virtualHost = "ful.r";
|
|
|
|
services = [
|
|
{
|
|
title = "restic backup";
|
|
description = "This machine backups its state via restic backup.";
|
|
}
|
|
];
|
|
};
|
|
|
|
age.secrets = {
|
|
retiolum-rsa = {
|
|
file = ../../secrets/ful-retiolum-privateKey-rsa.age;
|
|
mode = "400";
|
|
owner = "tinc-retiolum";
|
|
group = "tinc-retiolum";
|
|
};
|
|
retiolum-ed25519 = {
|
|
file = ../../secrets/ful-retiolum-privateKey-ed25519.age;
|
|
mode = "400";
|
|
owner = "tinc-retiolum";
|
|
group = "tinc-retiolum";
|
|
};
|
|
root.file = ../../secrets/ful-root.age;
|
|
restic.file = ../../secrets/restic.age;
|
|
};
|
|
|
|
services.restic.backups.niveum = {
|
|
initialize = true;
|
|
repository = pkgs.lib.niveum.restic.repository;
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
RandomizedDelaySec = "1h";
|
|
};
|
|
passwordFile = config.age.secrets.restic.path;
|
|
paths = [
|
|
config.services.mysqlBackup.location
|
|
];
|
|
};
|
|
|
|
networking = {
|
|
firewall.allowedTCPPorts = [
|
|
80
|
|
443
|
|
];
|
|
hostName = "ful";
|
|
interfaces.enp0s3.useDHCP = true;
|
|
retiolum = pkgs.lib.niveum.retiolumAddresses.ful;
|
|
useDHCP = false;
|
|
};
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedProxySettings = true;
|
|
recommendedTlsSettings = true;
|
|
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = pkgs.lib.niveum.kieran.email;
|
|
};
|
|
|
|
users.users.root.hashedPasswordFile = config.age.secrets.root.path;
|
|
|
|
environment.systemPackages = [
|
|
pkgs.vim
|
|
pkgs.git
|
|
pkgs.tmux
|
|
pkgs.python3
|
|
];
|
|
|
|
# since 22.05 timeout fails?
|
|
# systemd.services.systemd-networkd-wait-online.enable = false;
|
|
}
|