mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
10 lines
282 B
Nix
10 lines
282 B
Nix
{ self, ... }:
|
|
let
|
|
modulesOf = dir: map (name: "${dir}/${name}") (builtins.attrNames (builtins.readDir dir));
|
|
in
|
|
{
|
|
flake = {
|
|
nixosModules.default.imports = modulesOf "${self}/modules/system";
|
|
homeManagerModules.default.imports = modulesOf "${self}/modules/home";
|
|
};
|
|
}
|