2022-03-02 17:28:05 +00:00
|
|
|
{ self, nixpkgs-unstable, deploy-rs, ... }@inputs:
|
2021-12-21 15:26:21 +00:00
|
|
|
let
|
2022-03-02 17:28:05 +00:00
|
|
|
mkTree = import ./tree.nix { inherit (nixpkgs-unstable) lib; };
|
2022-03-02 17:49:49 +00:00
|
|
|
tree = (import ./treeConfig.nix { inherit mkTree; }).tree;
|
2022-01-16 11:22:44 +00:00
|
|
|
|
2022-03-02 17:49:49 +00:00
|
|
|
pkgs-x86_64-linux = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
2022-03-02 17:36:42 +00:00
|
|
|
hosts = import ./hosts ({ inherit tree; } // inputs);
|
2021-12-26 14:07:09 +00:00
|
|
|
in {
|
2022-03-02 17:36:42 +00:00
|
|
|
nixosConfigurations = hosts.nixosConfigurations;
|
2021-12-26 15:43:53 +00:00
|
|
|
|
2022-02-13 16:35:01 +00:00
|
|
|
devShell."x86_64-linux" = pkgs-x86_64-linux.mkShell {
|
|
|
|
packages = with pkgs-x86_64-linux; [
|
|
|
|
git
|
|
|
|
nano
|
|
|
|
bat
|
|
|
|
exa
|
|
|
|
deploy-rs.packages."x86_64-linux".deploy-rs
|
2022-02-16 17:04:27 +00:00
|
|
|
(pkgs-x86_64-linux.callPackage ./extras/mk-enc-usb.nix { })
|
|
|
|
(pkgs-x86_64-linux.callPackage ./extras/mk-lappy-ssd.nix { })
|
2022-02-13 16:35:01 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-12-26 15:43:53 +00:00
|
|
|
deploy.nodes.lappy = {
|
2022-01-03 16:50:22 +00:00
|
|
|
hostname = "lappy.tailscale-internal.genderfucked.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 = {
|
2022-01-03 16:50:22 +00:00
|
|
|
hostname = "hetzner-vm.tailscale-internal.genderfucked.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;
|
|
|
|
};
|
|
|
|
};
|
2022-01-03 16:50:22 +00:00
|
|
|
deploy.nodes.raspberry = {
|
|
|
|
hostname = "raspberry.tailscale-internal.genderfucked.monster";
|
|
|
|
username = "root";
|
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
2022-01-24 21:18:03 +00:00
|
|
|
path = deploy-rs.lib.aarch64-linux.activate.nixos
|
2022-01-03 16:50:22 +00:00
|
|
|
self.nixosConfigurations.raspberry;
|
|
|
|
};
|
|
|
|
};
|
2021-12-20 23:48:26 +00:00
|
|
|
}
|