move deployNodes into own file
This commit is contained in:
parent
e4e76442d9
commit
6cc648c012
29
deployNodes.nix
Normal file
29
deployNodes.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ nixosConfigurations, deploy-rs, ... }:
|
||||
let
|
||||
activateNixOS_x64_64-linux = deploy-rs.lib.x86_64-linux.activate.nixos;
|
||||
in {
|
||||
lappy = {
|
||||
hostname = "lappy.tailscale-internal.genderfucked.monster";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = activateNixOS_x64_64-linux nixosConfigurations.lappy;
|
||||
};
|
||||
};
|
||||
hetzner-vm = {
|
||||
hostname = "hetzner-vm.tailscale-internal.genderfucked.monster";
|
||||
username = "root";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = activateNixOS_x64_64-linux nixosConfigurations.hetzner-vm;
|
||||
};
|
||||
};
|
||||
raspberry = {
|
||||
hostname = "raspberry.tailscale-internal.genderfucked.monster";
|
||||
username = "root";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos
|
||||
nixosConfigurations.raspberry;
|
||||
};
|
||||
};
|
||||
}
|
34
outputs.nix
34
outputs.nix
|
@ -1,4 +1,4 @@
|
|||
{ self, nixpkgs-unstable, deploy-rs, ... }@inputs:
|
||||
{ self, nixpkgs-unstable, ... }@inputs:
|
||||
let
|
||||
mkTree = import ./tree.nix { inherit (nixpkgs-unstable) lib; };
|
||||
tree = (import ./treeConfig.nix { inherit mkTree; }).tree;
|
||||
|
@ -8,6 +8,11 @@ let
|
|||
in {
|
||||
nixosConfigurations = hosts.nixosConfigurations;
|
||||
|
||||
deploy.nodes = (import ./deployNodes.nix {
|
||||
nixosConfigurations = self.nixosConfigurations;
|
||||
deploy-rs = inputs.deploy-rs;
|
||||
});
|
||||
|
||||
devShell."x86_64-linux" = pkgs-x86_64-linux.mkShell {
|
||||
packages = with pkgs-x86_64-linux; [
|
||||
git
|
||||
|
@ -19,31 +24,4 @@ in {
|
|||
(pkgs-x86_64-linux.callPackage ./extras/mk-lappy-ssd.nix { })
|
||||
];
|
||||
};
|
||||
|
||||
deploy.nodes.lappy = {
|
||||
hostname = "lappy.tailscale-internal.genderfucked.monster";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||
self.nixosConfigurations.lappy;
|
||||
};
|
||||
};
|
||||
deploy.nodes.hetzner-vm = {
|
||||
hostname = "hetzner-vm.tailscale-internal.genderfucked.monster";
|
||||
username = "root";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||
self.nixosConfigurations.hetzner-vm;
|
||||
};
|
||||
};
|
||||
deploy.nodes.raspberry = {
|
||||
hostname = "raspberry.tailscale-internal.genderfucked.monster";
|
||||
username = "root";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.aarch64-linux.activate.nixos
|
||||
self.nixosConfigurations.raspberry;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue