firefox sync

This commit is contained in:
Henri Dohmen 2025-07-15 20:58:17 +02:00
parent 7bc095fcea
commit 42ff53de0f
Signed by: hd
GPG key ID: AB79213B044674AE
8 changed files with 54 additions and 38 deletions

View file

@ -1,18 +1,14 @@
{ lib, var, ... }:
let
lan-tld = ".lan";
lan-base-domain = ".hdohmen.de";
lan-hosts = lib.mapAttrs' (name: value: {
name = "${name}${lan-tld}";
name = "${name}.lan";
inherit value;
}) var.wg.ips;
custom-hosts = {
"fx-sync.lan" = var.wg.ips.roam;
};
in
rec {
hostsFile = lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: "${v}\t${n}") hosts);
hosts =
lan-hosts
// lib.mapAttrs' (name: value: {
name = "${name}${lan-base-domain}";
inherit value;
}) lan-hosts;
hosts = lan-hosts // custom-hosts;
}