Started to move to flakes

This commit is contained in:
2021-07-28 12:01:06 -07:00
parent b4ce03333a
commit b1330e94ec
10 changed files with 163 additions and 101 deletions
+6
View File
@@ -137,6 +137,12 @@ let
description = "A host that tends to overheat. Try to keep it cooler.";
default = false;
};
platform = mkOption {
type = str;
description = "System platform of the host.";
default = "x86_64";
};
};
};
+2 -5
View File
@@ -1,8 +1,7 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.fudo.mail-server;
let cfg = config.fudo.mail-server;
in {
options.fudo.mail-server.clamav = {
@@ -18,9 +17,7 @@ in {
services.clamav = {
daemon = {
enable = true;
extraConfig = ''
PhishingScanURLs no
'';
settings = { PhishingScanURLs = "no"; };
};
updater.enable = true;
};
+4
View File
@@ -157,6 +157,9 @@ let
ensure-group-dirs-script = group: dirs:
concatStringsSep "\n" (map (ensure-group-directory group) dirs);
hostname = config.instance.hostname;
host-cfg = config.fudo.hosts.${hostname};
in {
options.fudo = {
users = mkOption {
@@ -228,6 +231,7 @@ in {
members = filterExistingUsers sys.local-users groupOpts.members;
}) sys.local-groups) // {
wheel = { members = sys.local-admins; };
docker = mkIf (host-cfg.docker-server) { members = sys.local-admins; };
};
};