refactor: dynamic imports

This commit is contained in:
Leon Schwarzäugl 2025-01-07 17:54:46 +01:00
parent 0da982831f
commit 0f8051cf4a
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
6 changed files with 36 additions and 216 deletions

View file

@ -1,10 +1,10 @@
{ self, ... }:
{ self, lib, ... }:
let
importNames = lib.swarselsystems.readNix "profiles/home/server";
profilesPath = "${self}/profiles";
in
{
imports = [
imports = lib.swarselsystems.mkImports importNames "profiles/home/server" ++ [
"${profilesPath}/home/common/settings.nix"
./symlink.nix
];
}