2022-12-04 16:10:00 +00:00
|
|
|
{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 = {
|
|
|
|
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 = [
|
2022-03-02 17:49:49 +00:00
|
|
|
# NO_INLINE
|
2022-12-03 16:40:50 +00:00
|
|
|
tree.profiles.base
|
2022-03-02 17:49:49 +00:00
|
|
|
inputs.home-manager-unstable.nixosModules.home-manager
|
2022-08-12 17:06:50 +01:00
|
|
|
inputs.gitlab_artifacts_sync.nixosModule
|
2022-11-11 16:32:26 +00:00
|
|
|
|
|
|
|
inputs.nur.nixosModules.nur
|
|
|
|
|
2022-12-03 16:40:50 +00:00
|
|
|
tree.modules.nixos.rclone-serve
|
|
|
|
tree.modules.nixos.rclone-sync
|
|
|
|
tree.modules.nixos.secrets
|
2022-03-02 17:49:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nixosUnstableSystem = nixpkgs-unstable.lib.nixosSystem;
|
2022-03-02 17:36:42 +00:00
|
|
|
in {
|
2022-11-10 11:25:33 +00:00
|
|
|
tablet = nixosUnstableSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = defaultModules ++ [./tablet/tablet.nix ./tablet/hardware.nix];
|
2022-11-10 11:25:33 +00:00
|
|
|
};
|
2023-07-21 11:48:07 +01:00
|
|
|
lappy-t495 = nixosUnstableSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = defaultModules ++ [./lappy-t495/lappy-t495.nix ./lappy-t495/hardware.nix];
|
|
|
|
};
|
2022-11-10 11:25:33 +00:00
|
|
|
|
2022-03-02 17:36:42 +00:00
|
|
|
hetzner-vm = nixosUnstableSystem {
|
2022-03-02 17:49:49 +00:00
|
|
|
specialArgs = defaultSpecialArgs;
|
2022-03-02 17:36:42 +00:00
|
|
|
system = "x86_64-linux";
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = defaultModules ++ [./hetzner-vm/hetzner-vm.nix];
|
2022-03-02 17:36:42 +00:00
|
|
|
};
|
|
|
|
|
2022-11-02 10:24:47 +00:00
|
|
|
vault = nixosUnstableSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = defaultModules ++ [./vault/vault.nix];
|
2022-11-02 10:24:47 +00:00
|
|
|
};
|
|
|
|
|
2022-11-24 13:29:48 +00:00
|
|
|
buildbox = nixosUnstableSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = defaultModules ++ [./buildbox/buildbox.nix];
|
2022-11-24 13:29:48 +00:00
|
|
|
};
|
|
|
|
|
2022-11-02 09:05:24 +00:00
|
|
|
# nix build .#nixosConfigurations.nixos-live-x86_64.config.system.build.isoImage
|
|
|
|
nixos-live-x86_64 = nixosUnstableSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "x86_64-linux";
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = defaultModules ++ [./nixos-live/nixos-live.nix];
|
2022-11-02 09:05:24 +00:00
|
|
|
};
|
|
|
|
|
2022-03-02 17:36:42 +00:00
|
|
|
# nix --no-sandbox build .#nixosConfigurations.raspberry.config.system.build.sdImage
|
|
|
|
raspberry = nixosUnstableSystem {
|
2022-03-02 17:49:49 +00:00
|
|
|
specialArgs = defaultSpecialArgs;
|
2022-03-02 17:36:42 +00:00
|
|
|
system = "aarch64-linux";
|
2022-12-04 13:45:43 +00:00
|
|
|
modules = defaultModules ++ [./raspberry/raspberry.nix];
|
2022-03-02 17:36:42 +00:00
|
|
|
};
|
|
|
|
}
|