nixfiles/outputs.nix

85 lines
2.6 KiB
Nix
Raw Normal View History

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; };
pkgs-x86_64-linux = nixpkgs-unstable.legacyPackages.x86_64-linux;
2021-12-20 23:48:26 +00:00
tree = mkTree {
inherit inputs;
folder = ./.;
config = {
2021-12-27 09:46:15 +00:00
"hosts/*/services".functor.enable = true;
2022-01-29 18:06:26 +00:00
"hosts/raspberry/services/music-friend".functor.enable = true;
2022-01-23 11:48:43 +00:00
"hosts/*/home".functor.enable = true;
"hosts/*/profiles".functor.enable = true;
2021-12-20 23:48:26 +00:00
"profiles/*".functor.enable = true;
2022-01-16 11:46:16 +00:00
"profiles/sound/*".functor.enable = true;
2022-01-25 12:15:56 +00:00
"profiles/sound/pulseaudio/*".functor.enable = true;
2022-01-16 11:46:16 +00:00
"profiles/connectivity/*".functor.enable = true;
2022-01-16 11:22:44 +00:00
"profiles/gaming/*".functor.enable = true;
"profiles/gui/environments/*".functor.enable = true;
"users/*".functor.enable = true;
2021-12-20 23:48:26 +00:00
"home/*".functor.enable = true;
2022-01-16 11:22:44 +00:00
"home/gui/environments/*".functor.enable = true;
2021-12-26 14:21:54 +00:00
"home/apps/*".functor.enable = true;
2022-01-16 11:22:44 +00:00
"home/gaming/emulators/*".functor.enable = true;
"home/gaming/games/*".functor.enable = true;
"home/gaming/platforms/*".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
};
};
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;
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
];
};
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;
};
2021-12-20 23:48:26 +00:00
};
2021-12-28 15:09:51 +00:00
deploy.nodes.hetzner-vm = {
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;
};
};
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
self.nixosConfigurations.raspberry;
};
};
2021-12-20 23:48:26 +00:00
}