some cleanup

This commit is contained in:
Henri Dohmen 2025-07-15 11:15:07 +02:00
parent d2d89d7047
commit 240259f623
Signed by: hd
GPG key ID: AB79213B044674AE
7 changed files with 37 additions and 38 deletions

11
var/default.nix Normal file
View file

@ -0,0 +1,11 @@
{ lib, ... }@inp:
let
files = [
"lan-dns"
"ssh-keys"
"wg"
];
import_file = name: { ${name} = import ./${name}.nix (inp // { inherit var; }); };
var = lib.foldl' (a: b: a // b) { } (map import_file files);
in
var