fix statix

This commit is contained in:
Vivian 2022-12-01 22:13:05 +01:00
parent b397a78f8c
commit 52c58f4995
14 changed files with 106 additions and 101 deletions

View file

@ -37,7 +37,7 @@ in
};
config = mkIf cfg.enable {
networking.firewall = mkIf (cfg.openFirewall) {
networking.firewall = mkIf cfg.openFirewall {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
};

View file

@ -115,7 +115,7 @@ in {
# Create user if set to default
users.users = mkIf (cfg.user == "flood") {
flood = {
group = cfg.group;
inherit (cfg) group;
shell = pkgs.bashInteractive;
home = cfg.dataDir;
description = "flood Daemon user";
@ -124,7 +124,7 @@ in {
};
# Open firewall if option is set to do so.
networking.firewall.allowedTCPPorts = mkIf (cfg.openFirewall) [ cfg.port ];
networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ];
# The actual service
systemd.services.flood = {

View file

@ -244,7 +244,7 @@ in
# Create user if set to default
users.users = mkIf (cfg.user == "unpackerr") {
unpackerr = {
group = cfg.group;
inherit (cfg) group;
shell = pkgs.bashInteractive;
createHome = false;
description = "unpackerr Daemon user";