2021-12-28 21:42:46 +00:00
|
|
|
{ self, nixpkgs, home-manager, deploy-rs, ... }@inputs:
|
2021-12-21 15:26:21 +00:00
|
|
|
let
|
2021-12-20 23:48:26 +00:00
|
|
|
mkTree = import ./tree.nix { inherit (nixpkgs) lib; };
|
|
|
|
tree = mkTree {
|
|
|
|
inherit inputs;
|
|
|
|
folder = ./.;
|
|
|
|
config = {
|
2021-12-27 09:46:15 +00:00
|
|
|
"hosts/*/services".functor.enable = true;
|
2021-12-20 23:48:26 +00:00
|
|
|
"profiles/*".functor.enable = true;
|
2021-12-26 13:29:24 +00:00
|
|
|
"users/*".functor.enable = true;
|
2021-12-20 23:48:26 +00:00
|
|
|
"home/*".functor.enable = true;
|
2021-12-26 14:21:54 +00:00
|
|
|
"home/apps/*".functor.enable = true;
|
2021-12-26 14:07:09 +00:00
|
|
|
"home/programming/languages/*".functor.enable = true;
|
2021-12-28 17:47:07 +00:00
|
|
|
"modules/nixos" = {
|
|
|
|
functor = {
|
|
|
|
enable = true;
|
2021-12-28 22:06:26 +00:00
|
|
|
external = [ ];
|
2021-12-28 21:42:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
"modules/home" = {
|
|
|
|
functor = {
|
|
|
|
enable = true;
|
2021-12-28 22:06:26 +00:00
|
|
|
external = [ ];
|
2021-12-28 17:47:07 +00:00
|
|
|
};
|
|
|
|
};
|
2021-12-20 23:48:26 +00:00
|
|
|
};
|
|
|
|
};
|
2021-12-26 14:07:09 +00:00
|
|
|
in {
|
2021-12-26 15:43:53 +00:00
|
|
|
#legacyPackages.tree = tree;
|
2021-12-27 09:46:15 +00:00
|
|
|
nixosConfigurations = import ./hosts ({ inherit tree; } // inputs);
|
2021-12-26 15:43:53 +00:00
|
|
|
|
|
|
|
deploy.nodes.lappy = {
|
2021-12-29 12:26:15 +00:00
|
|
|
hostname = "lappy.tailscale-internal.owo.monster";
|
2021-12-26 15:43:53 +00:00
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
|
|
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
|
|
|
self.nixosConfigurations.lappy;
|
|
|
|
};
|
2021-12-20 23:48:26 +00:00
|
|
|
};
|
2021-12-28 15:09:51 +00:00
|
|
|
deploy.nodes.hetzner-vm = {
|
2021-12-29 12:26:15 +00:00
|
|
|
hostname = "hetzner-vm.tailscale-internal.owo.monster";
|
2021-12-28 16:00:56 +00:00
|
|
|
username = "root";
|
2021-12-28 15:09:51 +00:00
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
|
|
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
|
|
|
self.nixosConfigurations.hetzner-vm;
|
|
|
|
};
|
|
|
|
};
|
2021-12-20 23:48:26 +00:00
|
|
|
}
|