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