mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
remove unnecessary check
This commit is contained in:
parent
4eeb56a6ba
commit
7eb23fbb59
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
||||||
{ inherit (impermanence.nixosModules) impermanence; } //
|
{ inherit (impermanence.nixosModules) impermanence; } //
|
||||||
nixpkgs.lib.mapAttrs'
|
nixpkgs.lib.mapAttrs'
|
||||||
(name: type: {
|
(name: type: {
|
||||||
name = if (type == "regular") then (nixpkgs.lib.removeSuffix ".nix" name) else name;
|
name = nixpkgs.lib.removeSuffix ".nix" name;
|
||||||
value = import (./modules + "/${name}");
|
value = import (./modules + "/${name}");
|
||||||
})
|
})
|
||||||
(builtins.readDir ./modules);
|
(builtins.readDir ./modules);
|
||||||
|
|
Loading…
Reference in a new issue