forked from nixops4/nixops4-nixos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
60 lines (57 loc) · 1.71 KB
/
Copy pathflake.nix
File metadata and controls
60 lines (57 loc) · 1.71 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
description = "NixOS integration for NixOps4";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixops4-nixos.follows = ""; # self
/**
Provides `bash` and `ssh` client for the deployment script.
*/
# Keep in sync with dev/flake.nix nixpkgs.
# https://github.com/NixOS/nix/issues/7730#issuecomment-3663046220
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
inputs@{ flake-parts, ... }:
{
inherit
(flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-parts.flakeModules.partitions
inputs.flake-parts.flakeModules.modules
./main-module.nix
];
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
partitions.dev.extraInputsFlake = ./dev;
partitions.dev.module.imports = [ ./dev/flake-module.nix ];
partitions.example.extraInputsFlake = ./dev;
partitions.example.module.imports = [ ./example/flake-module.nix ];
partitionedAttrs.devShells = "dev";
partitionedAttrs.checks = "dev";
partitionedAttrs.herculesCI = "dev";
partitionedAttrs.packages = "example";
partitionedAttrs.nixops4 = "example";
})
modules
packages
devShells
checks
/**
Example configurations used in integration tests.
*/
nixops4
/**
Continuous integration settings
*/
herculesCI
;
templates.default = {
path = ./example;
description = "NixOps4-NixOS deployment example";
};
};
}