2021-12-28 15:09:51 +00:00
|
|
|
{ self, home-manager, nixpkgs, tree, ... }@inputs:
|
2021-12-21 15:26:21 +00:00
|
|
|
let
|
2021-12-28 22:06:26 +00:00
|
|
|
defaultModules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
tree.impure.modules.nixos
|
|
|
|
tree.impure.profiles.base
|
|
|
|
];
|
2021-12-20 23:48:26 +00:00
|
|
|
defaultSpecialArgs = {
|
|
|
|
tree = tree.impure;
|
|
|
|
pureTree = tree.pure;
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2021-12-26 14:07:09 +00:00
|
|
|
in {
|
2021-12-21 13:29:59 +00:00
|
|
|
lappy = nixpkgs.lib.nixosSystem {
|
2021-12-20 23:48:26 +00:00
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
2021-12-27 09:46:15 +00:00
|
|
|
modules = defaultModules ++ [ ./lappy/lappy.nix ];
|
2021-12-20 23:48:26 +00:00
|
|
|
};
|
2021-12-27 14:26:22 +00:00
|
|
|
|
2022-01-01 15:16:12 +00:00
|
|
|
rescue-x86_64 = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = defaultModules ++ [ ./rescue/rescue.nix ];
|
|
|
|
};
|
|
|
|
|
2021-12-28 15:09:51 +00:00
|
|
|
hetzner-vm = nixpkgs.lib.nixosSystem {
|
2021-12-27 14:26:22 +00:00
|
|
|
specialArgs = defaultSpecialArgs;
|
2021-12-28 15:09:51 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = defaultModules ++ [ ./hetzner-vm/hetzner-vm.nix ];
|
2021-12-27 14:26:22 +00:00
|
|
|
};
|
2022-01-03 16:50:22 +00:00
|
|
|
|
|
|
|
# nix --no-sandbox build .#nixosConfigurations.raspberry.config.system.build.sdImage
|
|
|
|
raspberry = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = defaultModules ++ [ ./raspberry/raspberry.nix ];
|
|
|
|
};
|
2021-12-20 23:48:26 +00:00
|
|
|
}
|