-
Notifications
You must be signed in to change notification settings - Fork 4
/
outputs.nix
36 lines (35 loc) · 1.19 KB
/
outputs.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ self
, flake-utils
, nixpkgs
, nixpkgsLegacy
, sops-nix
, deploy
, colmena
, ...
} @ inputs:
(flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
pkgsLegacy = nixpkgsLegacy.legacyPackages."${system}";
in
{
minecraft = pkgs.callPackage ./nixos/optina/minecraft-bedrock.nix {};
omadad = pkgsLegacy.callPackage ./modules/services/omadad/package.nix {};
devShells.default = pkgs.callPackage ./shell.nix {
inherit (sops-nix.packages."${pkgs.system}") sops-import-keys-hook ssh-to-pgp sops-init-gpg-key;
inherit (deploy.packages."${pkgs.system}") deploy-rs;
inherit (colmena.packages."${pkgs.system}") colmena;
};
})) // {
nixosConfigurations = import ./nixos/configurations.nix (inputs // {
inherit inputs;
});
deploy = import ./nixos/deploy.nix (inputs // {
inherit inputs;
});
colmena = import ./nixos/colmena.nix (inputs // {
inherit inputs;
});
#hydraJobs = nixpkgs.lib.mapAttrs' (name: config: nixpkgs.lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel) self.nixosConfigurations;
#checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy.lib;
}