forked from Bun/nixos-config
Add Colmena to manage systems, use better pathing for smallfetch, use better mountpoints and hostnames from Colema
This commit is contained in:
parent
215ad6b1a7
commit
1f7d01bb4d
53 changed files with 254 additions and 166 deletions
|
@ -1,11 +1,13 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, nodes, ... }:
|
||||
{
|
||||
imports = [ ./user ];
|
||||
|
||||
config = lib.mkIf config.services.nfs.server.enable {
|
||||
services.nfs.server.exports = "/storage *(rw)";
|
||||
networking.firewall.extraInputRules = with lib; ''
|
||||
ip6 saddr { ${concatStringsSep ", " (attrValues config.services.mycelium.ips)} } tcp dport 2049 accept
|
||||
networking.firewall.extraInputRules = let
|
||||
targetHosts = lib.attrValues (lib.mapAttrs (_: node: node.config.deployment.targetHost) nodes);
|
||||
in ''
|
||||
ip6 saddr { ${lib.concatStringsSep ", " targetHosts} } tcp dport 2049 accept
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue