reciproka-ops/default.nix

21 lines
585 B
Nix
Raw Normal View History

2022-07-07 03:57:44 +00:00
{
sources ? import ./nix/sources.nix,
system ? builtins.currentSystem,
crossSystem ? null,
config ? {},
alejandraUnstable ? (import sources.nixpkgsUnstable {}).alejandra,
} @ args:
with import ./nix args; {
2021-10-07 02:11:08 +00:00
shell = mkShell {
inherit (import sources.niv {}) niv;
buildInputs = [
2022-07-07 03:57:44 +00:00
alejandraUnstable # The Uncompromising Nix Code Formatter
2021-10-07 02:11:08 +00:00
niv
2022-07-07 03:57:44 +00:00
nixopsUnstable # work around for issue #127423
treefmt # one CLI to format the code tree
2021-10-07 02:11:08 +00:00
];
2022-07-07 03:57:44 +00:00
NIX_PATH = "nixpkgs=${sources.nixpkgs}";
2021-10-07 02:11:08 +00:00
NIXOPS_DEPLOYMENT = "${globals.deploymentName}";
};
}