blob: 4aa05ba2ae8d259f8a14204352a35e2fd455b86b (
plain)
1
2
3
4
5
6
7
8
9
|
self: let
inherit (builtins) readDir;
inherit (self.inputs.nixpkgs.lib) filterAttrs nameValuePair mapAttrs' hasSuffix removeSuffix;
in
mapAttrs'
(n: v: nameValuePair "machine-${removeSuffix ".nix" n}" (import (./. + "/${n}")))
(filterAttrs
(n: v: v == "regular" && hasSuffix ".nix" n && n != "default.nix")
(readDir ./.))
|