nixfiles/outputs.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2021-12-28 17:47:07 +00:00
{ self, nixpkgs, home-manager, vault-secrets, 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;
"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;
external = [
(import (inputs.vault-secrets + "/modules/vault-secrets.nix"))
];
};
};
2021-12-20 23:48:26 +00:00
};
};
2021-12-26 14:07:09 +00:00
in {
#legacyPackages.tree = tree;
2021-12-27 09:46:15 +00:00
nixosConfigurations = import ./hosts ({ inherit tree; } // inputs);
deploy.nodes.lappy = {
2021-12-27 09:46:15 +00:00
hostname = "localhost";
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 = {
hostname = "65.21.182.73";
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
}