1 # This is the configuration.nix
2 # of the target machine in production.
4 # It is NOT copied nor usable on the target machine,
5 # only the resulting closure is copied to the target machine.
6 { pkgs, lib, config, ... }:
8 inherit (builtins.extraBuiltins) pass;
9 #inherit (config) networking;
10 mapImportedConfigRecursively = mapConfig:
13 if builtins.isFunction m
15 then lib.unifyModuleSyntax null null
16 (lib.applyIfFunction null m modArgs)
17 else lib.unifyModuleSyntax (toString m) (toString m)
18 (lib.applyIfFunction (toString m) (import m) modArgs);
21 imports = mapImportedConfigRecursively mapConfig mod.imports;
22 config = mapConfig mod.config;
28 ../../base/unbound.nix
45 #targetHost = (builtins.elemAt networking.interfaces.enp5s0.ipv4.addresses 0).address;
48 text = pass "servers/losurdo/root/ssh/id_ed25519";
51 destDir = "/root/.ssh";