2022-12-09 16:04:16 +03:00
|
|
|
{
|
|
|
|
description = "A universal nixos installer, just needs ssh access to the target system";
|
|
|
|
|
2022-12-09 16:56:06 +03:00
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2022-12-09 16:04:16 +03:00
|
|
|
inputs.disko.url = "github:nix-community/disko/master";
|
|
|
|
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2022-12-09 16:56:06 +03:00
|
|
|
outputs = { self, disko, nixpkgs, ... }: let
|
|
|
|
supportedSystems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"aarch64-linux"
|
2022-12-09 16:58:07 +03:00
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
2022-12-09 16:56:06 +03:00
|
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
|
|
in {
|
|
|
|
packages = forAllSystems (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
nixos-remote = pkgs.callPackage ./package.nix {};
|
|
|
|
default = self.packages.${system}.nixos-remote;
|
|
|
|
});
|
2022-12-09 16:04:16 +03:00
|
|
|
checks.x86_64-linux = let
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
in {
|
|
|
|
from-nixos = import ./tests/from-nixos.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
disko = disko.nixosModules.disko;
|
|
|
|
makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix");
|
|
|
|
eval-config = import (pkgs.path + "/nixos/lib/eval-config.nix");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|