mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Rename directory flake to flake-parts
This commit is contained in:
parent
8cdb87769c
commit
121d7364f7
7 changed files with 6 additions and 6 deletions
10
flake-parts/modules.nix
Normal file
10
flake-parts/modules.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ self, lib, ... }:
|
||||
let
|
||||
modulesOf = dir: dir |> lib.filesystem.listFilesRecursive |> lib.filter (lib.hasSuffix ".nix");
|
||||
in
|
||||
{
|
||||
flake = {
|
||||
nixosModules.default.imports = modulesOf "${self}/modules/system";
|
||||
homeManagerModules.default.imports = modulesOf "${self}/modules/home";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue