nixfiles/hosts/nixos.nix

61 lines
1.4 KiB
Nix
Raw Normal View History

{
self,
nixpkgs-unstable,
...
} @ inputs: let
mkTree = inputs.tree-input.tree;
metaTree = mkTree ((import ../treeConfig.nix {}) // {inherit inputs;});
tree = metaTree.impure;
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
defaultSpecialArgs = {
inherit self;
tree = metaTree.impure;
pureTree = metaTree.pure;
inputs = patchedInputs;
};
defaultModules = [
2024-07-24 14:13:59 +01:00
tree.profiles.nixos.base
inputs.home-manager-unstable.nixosModules.home-manager
2022-11-11 16:32:26 +00:00
inputs.vaultui.nixosModules.default
tree.modules.nixos.rcloneServe
tree.modules.nixos.rcloneSync
tree.modules.nixos.secrets
tree.modules.nixos.encryptedDrive
];
nixosUnstableSystem = nixpkgs-unstable.lib.nixosSystem;
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
}