Apply fixes for breaking module changes in 21.11

neomutt
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";
users = {
wordclock = {
acl = [
"topic readwrite wordclock/color/+"
];
password = "ymfQkXcEqGuk62S";
};
};
checkPasswords = true;
listeners = [
{
users = {
wordclock = {
acl = [
"readwrite wordclock/color/+"
];
inherit password;
};
};
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";