firefox sync
This commit is contained in:
parent
7bc095fcea
commit
42ff53de0f
8 changed files with 54 additions and 38 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue