reciproka-ops/outputs.nix

43 lines
979 B
Nix
Raw Normal View History

2022-07-18 22:20:05 +00:00
{
self,
2022-07-20 04:34:07 +00:00
jfdic-web,
2022-07-18 22:20:05 +00:00
nix,
nixops,
nixpkgs,
nixpkgsUnstable,
2022-07-21 05:50:13 +00:00
resrok-web,
2022-07-18 22:20:05 +00:00
utils,
2022-07-21 06:00:18 +00:00
voc-web,
2022-07-18 22:20:05 +00:00
...
} @ inputs:
(utils.lib.eachDefaultSystem (system: let
pkgs =
nixpkgs.legacyPackages."${system}";
in {
devShell =
pkgs.callPackage
./shell.nix {
inherit (nix.packages."${pkgs.system}") nix;
inherit (nixpkgsUnstable.legacyPackages."${pkgs.system}") alejandra;
nixops = nixops.defaultPackage."${pkgs.system}";
};
}))
// {
2022-07-20 04:13:22 +00:00
nixopsConfigurations.default = {
inherit nixpkgs;
network = {
description = "jfdic-ops nodes";
enableRollback = true;
storage.legacy = {
databasefile = "~/.nixops/deployments.nixops";
};
};
defaults = {
system.autoUpgrade.enable = false; # Disabled as it conflicts with NixOps
2022-07-20 04:34:07 +00:00
_module.args.inputs = inputs; # make flake inputs accessiable in NixOS
imports = [./profiles/host_common.nix];
2022-07-20 04:13:22 +00:00
};
toscano = import ./hosts/toscano.nix;
};
2022-07-18 22:20:05 +00:00
}