mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-22 10:05:06 +03:00
Merge pull request #138 from Pacman99/flake-extendModules
nixos-generate: use extendModules for flakes
This commit is contained in:
commit
9f56b704ff
@ -15,9 +15,9 @@ let
|
||||
flakeSystem = flake.outputs.packages."${system}".nixosConfigurations."${flakeAttr}" or flake.outputs.nixosConfigurations."${flakeAttr}";
|
||||
in
|
||||
if flakeUri != null then
|
||||
flakeSystem.override (attrs: {
|
||||
modules = attrs.modules ++ [ module formatConfig ];
|
||||
})
|
||||
flakeSystem.extendModules {
|
||||
modules = [ module formatConfig ];
|
||||
}
|
||||
else
|
||||
import "${toString nixpkgs}/nixos/lib/eval-config.nix" {
|
||||
inherit system;
|
||||
|
Loading…
Reference in New Issue
Block a user