mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
refactor: dynamic imports
This commit is contained in:
parent
0da982831f
commit
0f8051cf4a
6 changed files with 36 additions and 216 deletions
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue