diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/poweredge/configuration.nix | 35 | ||||
| -rw-r--r-- | hosts/poweredge/fileshares.nix | 14 | ||||
| -rw-r--r-- | hosts/poweredge/networking.nix | 11 |
3 files changed, 42 insertions, 18 deletions
diff --git a/hosts/poweredge/configuration.nix b/hosts/poweredge/configuration.nix index 16a2686..3490589 100644 --- a/hosts/poweredge/configuration.nix +++ b/hosts/poweredge/configuration.nix @@ -1,6 +1,4 @@ -{ config, lib, pkgs, ... }: let - serverEmail = "poweredge@tjkeller.xyz"; -in { +{ config, lib, pkgs, ... }: { imports = [ ./ddns-updater.nix ./fileshares.nix @@ -14,17 +12,38 @@ in { # Enable common options _archetypes = { - profiles.headless = { - enable = true; - home.users.timmy.enable = true; + profiles = { + headless = { + enable = true; + home.users.timmy.enable = true; + }; + zfs.enable = true; + router.enable = true; + }; + collections = { + development.docker.enable = true; + development.docker.btrfsSupport = false; # TODO remove }; - profiles.zfs.enable = true; - profiles.router.enable = true; }; + virtualisation.docker.storageDriver = "zfs"; # TODO move to profile + # Enable smartd services.smartd.enable = true; # TODO move to archetype + # Enable web services + # services = { + # _cgit = { + # enable = true; + # hostAddress = "192.168.1.10"; + # localAddress = "192.168.1.11"; + # rootTitle = "PowerEdge local cgit"; + # # TODO add authorizedKeys + # }; + # }; + # + #services._klipper.enable = true; + # Enable user timmy _users.timmy.enable = true; diff --git a/hosts/poweredge/fileshares.nix b/hosts/poweredge/fileshares.nix index 4593ef8..90b738c 100644 --- a/hosts/poweredge/fileshares.nix +++ b/hosts/poweredge/fileshares.nix @@ -1,9 +1,11 @@ { - # TODO make user for ps2 + # Import zfs pools + boot.zfs.extraPools = [ "ingens" "memoria" ]; + services._fileShares.enable = true; services._fileShares.shares = { PS2 = { - path = "/media/storage/games/ps2"; + path = "/media/ingens/games/ps2"; smb = { enable = true; allowUser = "ps2"; @@ -14,19 +16,19 @@ }; }; WinBackups = { - path = "/media/storage/backups/windows"; + path = "/media/ingens/backups/windows"; smb.enable = true; }; pictures = { - path = "/media/storage/pictures"; + path = "/media/ingens/pictures"; nfs.enable = true; }; tapes = { - path = "/media/storage/tapes"; + path = "/media/ingens/tapes"; nfs.enable = true; }; backups = { - path = "/media/storage/backups"; + path = "/media/ingens/backups"; nfs.enable = true; }; }; diff --git a/hosts/poweredge/networking.nix b/hosts/poweredge/networking.nix index 7632a86..09759ee 100644 --- a/hosts/poweredge/networking.nix +++ b/hosts/poweredge/networking.nix @@ -22,6 +22,9 @@ interfaces.wan0 = { allowedUDPPorts = [ 51820 ]; }; + interfaces.lan0 = { + allowedTCPPorts = [ 2283 80 ]; # FIXME temp + }; }; # Additional advanced rules # TODO add multi NAT feature to router service @@ -54,19 +57,19 @@ staticLeases = { idrac-7N94GK2 = { macAddress = "50:9a:4c:5d:c3:7c"; - staticIp = "192.168.1.3"; + staticIp = "192.168.1.2"; }; OpenWrt-Attic = { macAddress = "34:98:b5:60:5e:be"; - staticIp = "192.168.1.4"; + staticIp = "192.168.1.3"; }; OpenWrt-Basement = { macAddress = "8c:3b:ad:35:c7:8c"; - staticIp = "192.168.1.5"; + staticIp = "192.168.1.4"; }; ArcherC54 = { macAddress = "12:eb:b6:13:f9:e2"; - staticIp = "192.168.1.6"; + staticIp = "192.168.1.5"; }; T495 = { macAddress = "04:33:c2:9d:34:74"; |
