tangled
alpha
login
or
join now
pluie.me
/
flake
2
fork
atom
All my system configs and packages in one repo
2
fork
atom
overview
issues
pulls
pipelines
ci: run nix flake check instead of building whole systems
pluie.me
2 months ago
cd8faa55
def6f216
verified
This commit was signed with the committer's
known signature
.
pluie.me
SSH Key Fingerprint:
SHA256:YtI1D7vlcZ4obaiJ4tQihtswcMhHKdfYZuc4whOX2y8=
1/1
ci.yml
success
2m 8s
+9
-9
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
ci.yml
flake.nix
+2
-5
.tangled/workflows/ci.yml
reviewed
···
17
17
18
18
environment:
19
19
CACHE_NAME: "pluiedev"
20
20
-
FLAKE_ATTR: ".#nixosConfigurations.pappardelle.config.system.build.toplevel"
21
20
22
21
steps:
23
23
-
- name: "Evaluate pappardelle"
24
24
-
command: "nix eval --accept-flake-config $FLAKE_ATTR"
25
25
-
- name: "Build pappardelle"
26
26
-
command: "USER=root cachix watch-exec $CACHE_NAME -- nix build --accept-flake-config $FLAKE_ATTR"
22
22
+
- name: "Check and cache Flake outputs"
23
23
+
command: "USER=root cachix watch-exec $CACHE_NAME -- nix flake check --accept-flake-config $FLAKE_ATTR"
+7
-4
flake.nix
reviewed
···
74
74
hjem-ctp = import ./modules/hjem-ctp;
75
75
};
76
76
77
77
-
# This is highly advised, and will prevent many possible mistakes
78
78
-
checks = builtins.mapAttrs (
79
79
-
_: deployLib: deployLib.deployChecks inputs.self.deploy
80
80
-
) inputs.deploy-rs.lib;
77
77
+
checks =
78
78
+
let
79
79
+
deployChecks = builtins.mapAttrs (
80
80
+
_: deployLib: deployLib.deployChecks inputs.self.deploy
81
81
+
) inputs.deploy-rs.lib;
82
82
+
in
83
83
+
deployChecks // inputs.self.packages;
81
84
};
82
85
83
86
perSystem =