remove unnecessary check

This commit is contained in:
Sean Buckley 2021-10-08 13:31:06 -04:00
parent 4eeb56a6ba
commit 7eb23fbb59

View file

@ -29,7 +29,7 @@
{ inherit (impermanence.nixosModules) impermanence; } //
nixpkgs.lib.mapAttrs'
(name: type: {
name = if (type == "regular") then (nixpkgs.lib.removeSuffix ".nix" name) else name;
name = nixpkgs.lib.removeSuffix ".nix" name;
value = import (./modules + "/${name}");
})
(builtins.readDir ./modules);