Skip to content

Commit

Permalink
flake output nixosModules
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Dec 8, 2024
1 parent 06d068b commit d0b5c00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
./meta.nix
./nix-on-droid-configurations
./nixos-configurations.nix
./nixos-modules
./nixvim
inputs.devshell.flakeModule
];
Expand Down
8 changes: 8 additions & 0 deletions nixos-modules/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ lib, ... }:
{
flake.nixosModules =
builtins.readDir ./modules
|> lib.mapAttrs' (
name: type: lib.nameValuePair (lib.removeSuffix ".nix" name) (import ./modules + "/${name}")
);
}

0 comments on commit d0b5c00

Please sign in to comment.