+3
-2
.tangled/workflows/ci.yml
+3
-2
.tangled/workflows/ci.yml
···
17
17
18
18
environment:
19
19
CACHE_NAME: "pluiedev"
20
+
FLAKE_ATTR: ".#nixosConfiguations.pappardelle.config.system.build.toplevel"
20
21
21
22
steps:
22
23
- name: "Evaluate pappardelle"
23
-
command: "nix eval .#nixosConfigurations.pappardelle.config.system.build.toplevel"
24
+
command: "nix eval --accept-flake-config $FLAKE_ATTR"
24
25
- name: "Build pappardelle"
25
-
command: "USER=root cachix watch-exec $CACHE_NAME -- nix build .#nixosConfigurations.pappardelle.config.system.build.toplevel"
26
+
command: "USER=root cachix watch-exec $CACHE_NAME -- nix build --accept-flake-config $FLAKE_ATTR"
+9
flake.nix
+9
flake.nix
···
1
1
{
2
2
description = "Leah's NixOS configurations + more";
3
3
4
+
nixConfig = {
5
+
extra-substituters = [
6
+
"https://pluiedev.cachix.org"
7
+
];
8
+
extra-trusted-public-keys = [
9
+
"pluiedev.cachix.org-1:tW7LdIlB2UV3DM/DOVlgxg0ON+8YJRIW1aKxPKFOwzI="
10
+
];
11
+
};
12
+
4
13
inputs = {
5
14
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
6
15
+10
systems/common.nix
+10
systems/common.nix
···
56
56
# Use dbus-broker for higher D-Bus performance
57
57
services.dbus.implementation = "broker";
58
58
59
+
# This is very bizarre.
60
+
#
61
+
# Within the Tangled CI environment there's no user information at all,
62
+
# and the builder is ran with ID 0. This is a problem because logrotate's
63
+
# check script apparently assumes the `id` binary will always succeed.
64
+
# Given that I don't want to mess with logrotate at all beyond what is
65
+
# already given to me as a default, I think it's saner to just disable
66
+
# config validation to make CI pass.
67
+
services.logrotate.checkConfig = false;
68
+
59
69
zramSwap = {
60
70
enable = true;
61
71
algorithm = "zstd";