2023-08-29 14:07:17 +01:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs-unstable,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
2022-12-03 16:40:50 +00:00
|
|
|
mkTree = inputs.tree-input.tree;
|
2022-12-04 13:45:43 +00:00
|
|
|
metaTree = mkTree ((import ../treeConfig.nix {}) // {inherit inputs;});
|
2022-12-03 16:40:50 +00:00
|
|
|
tree = metaTree.impure;
|
|
|
|
|
2022-12-04 13:45:43 +00:00
|
|
|
patchedInputs =
|
|
|
|
inputs
|
|
|
|
// {
|
|
|
|
# set these to the correct versions from inputs
|
|
|
|
nixpkgs = inputs.nixpkgs-unstable;
|
|
|
|
home-manager = inputs.home-manager-unstable;
|
|
|
|
};
|
2022-03-02 17:36:42 +00:00
|
|
|
|
2022-12-03 16:40:50 +00:00
|
|
|
defaultSpecialArgs = {
|
2023-08-29 14:07:17 +01:00
|
|
|
inherit self;
|
2022-12-03 16:40:50 +00:00
|
|
|
tree = metaTree.impure;
|
|
|
|
pureTree = metaTree.pure;
|
|
|
|
inputs = patchedInputs;
|
2022-03-02 17:49:49 +00:00
|
|
|
};
|
|
|
|
|
2022-12-03 16:40:50 +00:00
|
|
|
defaultModules = [
|
2024-07-24 14:13:59 +01:00
|
|
|
tree.profiles.nixos.base
|
2023-09-08 13:39:59 +01:00
|
|
|
|
2022-03-02 17:49:49 +00:00
|
|
|
inputs.home-manager-unstable.nixosModules.home-manager
|
2022-11-11 16:32:26 +00:00
|
|
|
|
2023-09-13 16:21:54 +01:00
|
|
|
inputs.vaultui.nixosModules.default
|
2023-09-08 13:39:59 +01:00
|
|
|
|
2023-09-28 19:22:33 +01:00
|
|
|
tree.modules.nixos.rcloneServe
|
|
|
|
tree.modules.nixos.rcloneSync
|
2022-12-03 16:40:50 +00:00
|
|
|
tree.modules.nixos.secrets
|
2024-04-01 17:02:14 +01:00
|
|
|
tree.modules.nixos.encryptedDrive
|
2022-03-02 17:49:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nixosUnstableSystem = nixpkgs-unstable.lib.nixosSystem;
|
2024-05-25 21:10:26 +01:00
|
|
|
in rec {
|
2023-07-21 11:48:07 +01:00
|
|
|
lappy-t495 = nixosUnstableSystem {
|
2023-09-18 03:56:58 +01:00
|
|
|
specialArgs =
|
2024-07-24 14:32:44 +01:00
|
|
|
defaultSpecialArgs;
|
2023-07-21 11:48:07 +01:00
|
|
|
system = "x86_64-linux";
|
2024-07-24 14:32:44 +01:00
|
|
|
modules = defaultModules ++ [./lappy-t495/lappy-t495.nix];
|
2023-07-21 11:48:07 +01:00
|
|
|
};
|
2022-11-10 11:25:33 +00:00
|
|
|
|
2023-09-20 18:56:09 +01:00
|
|
|
hetzner-arm = nixosUnstableSystem {
|
|
|
|
specialArgs =
|
2024-07-24 14:32:44 +01:00
|
|
|
defaultSpecialArgs;
|
2023-09-20 18:56:09 +01:00
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = defaultModules ++ [./hetzner-arm/hetzner-arm.nix];
|
|
|
|
};
|
2024-08-31 14:05:17 +01:00
|
|
|
|
2024-08-31 15:37:15 +01:00
|
|
|
raspberry-pi5 = nixosUnstableSystem {
|
2024-08-31 14:05:17 +01:00
|
|
|
specialArgs =
|
|
|
|
defaultSpecialArgs;
|
|
|
|
system = "aarch64-linux";
|
2024-08-31 15:37:15 +01:00
|
|
|
modules = defaultModules ++ [./raspberry-pi5/raspberry-pi5.nix];
|
2024-08-31 14:05:17 +01:00
|
|
|
};
|
2022-03-02 17:36:42 +00:00
|
|
|
}
|