2021-03-31 22:15:08 +00:00
|
|
|
{
|
2021-04-09 04:35:43 +00:00
|
|
|
inputs.unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2021-04-09 04:34:16 +00:00
|
|
|
inputs.stable2009.url = "github:NixOS/nixpkgs/nixos-20.09";
|
2021-04-06 03:11:17 +00:00
|
|
|
|
2021-04-09 04:35:43 +00:00
|
|
|
outputs = { self, unstable, stable2009 }: {
|
2021-04-05 21:56:06 +00:00
|
|
|
nixosModule = { ... }: {
|
|
|
|
imports = [ ./. ];
|
|
|
|
config = { sconfig.flakes.enable = true; };
|
|
|
|
};
|
2021-04-10 18:31:14 +00:00
|
|
|
nixosConfigurations = import ./hosts { sconfig = ./.; inherit unstable stable2009; };
|
2021-04-10 16:55:17 +00:00
|
|
|
|
|
|
|
defaultPackage."x86_64-linux" =
|
|
|
|
with (import unstable { system = "x86_64-linux"; });
|
|
|
|
(writeShellScriptBin "x" "cat ${writeText "x" self.nixosConfigurations.test}");
|
|
|
|
|
2021-03-31 22:15:08 +00:00
|
|
|
};
|
|
|
|
}
|