hosts: Yggdrasil setup

This commit is contained in:
kat witch 2021-04-25 21:59:07 +01:00
parent 017372b348
commit 8339072f08
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 40 additions and 1 deletions

View file

@ -1,6 +1,13 @@
{ tf, config, pkgs, lib, profiles, sources, witch, ... }:
{
with lib;
let
hexchen = (import sources.nix-hexchen) {};
hexYgg = filterAttrs (_: c: c.enable) (
mapAttrs (_: host: host.config.hexchen.network) hexchen.hosts
);
in {
imports = [
./hw.nix
profiles.gui
@ -89,6 +96,17 @@
];
services.avahi.enable = true;
hexchen.network = {
enable = true;
pubkey = "a7110d0a1dc9ec963d6eb37bb6922838b8088b53932eae727a9136482ce45d47";
# if server, enable this and set endpoint:
listen.enable = false;
listen.endpoints = [
"tcp://0.0.0.0:0"
];
};
system.stateVersion = "20.09";
}