Apply fixes for breaking module changes in 21.11

This commit is contained in:
Simon Bruder 2021-12-01 17:56:53 +01:00
parent cc8727fa80
commit 2c160661ec
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
5 changed files with 25 additions and 16 deletions

View file

@ -3,11 +3,13 @@
users.users.scan = {
home = "/var/lib/scans";
isSystemUser = true;
group = "scan";
# this is a low-risk account and since the only thing the account can do is
# login to the ftp server from my home network, you can also sniff the
# password since the connection is unencrypted
password = "meeB3laodoo8na3z";
};
users.groups.scan = { };
systemd.tmpfiles.rules = [
"d /var/lib/scans 0755 scan root 7d"

View file

@ -1,18 +1,25 @@
{ config, ... }:
let
password = "ymfQkXcEqGuk62S";
in
{
services.mosquitto = {
enable = true;
host = "0.0.0.0";
listeners = [
{
users = {
wordclock = {
acl = [
"topic readwrite wordclock/color/+"
"readwrite wordclock/color/+"
];
password = "ymfQkXcEqGuk62S";
inherit password;
};
};
checkPasswords = true;
settings = {
allow_anonymous = false;
};
}
];
};
networking.firewall.allowedTCPPorts = [ 1883 ];
@ -21,7 +28,7 @@
enable = true;
mqtt = {
user = "wordclock";
password = config.services.mosquitto.users.wordclock.password;
inherit password;
host = "localhost";
};
};

View file

@ -22,7 +22,7 @@
virtualisation.libvirtd = {
enable = true;
qemuPackage = pkgs.qemu_kvm;
qemu.package = pkgs.qemu_kvm;
};
services.samba = {

View file

@ -27,7 +27,7 @@
virtualisation.libvirtd = {
enable = true;
qemuPackage = pkgs.qemu_kvm;
qemu.package = pkgs.qemu_kvm;
};
services.tor = {

View file

@ -77,7 +77,7 @@ in
inherit repository;
inherit (cfg) timerConfig;
passwordFile = config.sops.secrets.restic-password.path;
s3CredentialsFile = config.sops.secrets.restic-s3.path;
environmentFile = config.sops.secrets.restic-s3.path;
paths = [
"/etc"
"/home"
@ -102,7 +102,7 @@ in
services.restic.backups.system-prune = lib.mkIf cfg.prune {
inherit repository;
passwordFile = config.sops.secrets.restic-password.path;
s3CredentialsFile = config.sops.secrets.restic-s3.path;
environmentFile = config.sops.secrets.restic-s3.path;
timerConfig = {
OnCalendar = "*-1/2-07 03:00:00";
RandomizedDelaySec = "4h";