We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb3ee0f commit 8feb8faCopy full SHA for 8feb8fa
flake.nix
@@ -74,12 +74,19 @@
74
buildInputs = with pkgs; [ jq coreutils findutils ];
75
});
76
77
- # Make it runnable with `nix app`
78
- apps = forAllSystems (system: {
+ # Make it runnable with `nix run`
+ apps = forAllSystems (system: let
79
nixos-generate = {
80
type = "app";
81
program = "${self.packages."${system}".nixos-generators}/bin/nixos-generate";
82
};
83
+ in {
84
+ inherit nixos-generate;
85
+
86
+ # Nix >= 2.7 flake output schema uses `apps.<system>.default` instead
87
+ # of `defaultApp.<system>` to signify the default app (the thing that
88
+ # gets run with `nix run . -- <args>`)
89
+ default = nixos-generate;
90
91
92
defaultApp = forAllSystems (system: self.apps."${system}".nixos-generate);
0 commit comments