Skip to content

Commit

Permalink
feat: reenable hercules-ci-agent(s)
Browse files Browse the repository at this point in the history
Signed-off-by: Burgess Chang <[email protected]>
  • Loading branch information
brsvh committed May 27, 2024
1 parent 35f6f36 commit 89e21de
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 23 deletions.
59 changes: 59 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@
];
};

# Applications
inputs = {
hercules-ci-agent = {
url = "github:hercules-ci/hercules-ci-agent/master";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
flake-parts = {
follows = "flake-parts";
};
};
};
};

# Home Manager
inputs = {
home-manager = {
Expand Down Expand Up @@ -85,6 +100,9 @@
};
};
};
flake-parts-haskell = {
url = "github:srid/haskell-flake/0.4.0";
};
flake-utils = {
url = "github:numtide/flake-utils/main";
inputs = {
Expand Down
11 changes: 10 additions & 1 deletion nix/soil/nixosConfigurations/eustoma/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
...
}:
let
inherit (inputs) hardware lanzaboote;
inherit (inputs) hardware hercules-ci-agent lanzaboote;
inherit (inputs.cells) apps fonts my-emacs;

# This device will not be exposed to the public network. The domain
Expand All @@ -22,6 +22,7 @@ in
{
imports = [
cell.nixosProfiles.dae
cell.nixosProfiles.hercules-ci-agent
cell.nixosProfiles.libvirt
cell.nixosSecrets.eustoma
cell.nixosSuites.gnome-workstation
Expand All @@ -46,6 +47,7 @@ in
overlays = [
apps.overlays.unfree
fonts.overlays.proprius-fonts
hercules-ci-agent.overlays.default
lanzaboote.overlays.default
my-emacs.overlays.emacs
];
Expand Down Expand Up @@ -134,6 +136,13 @@ in
configFile = config.sops.secrets."dae/config.dae".path;
};

hercules-ci-agent = {
settings = {
binaryCachesPath = config.sops.secrets."hercules-ci/binary-caches.json".path;
clusterJoinTokenPath = config.sops.secrets."hercules-ci/cluster-join-token.key".path;
};
};

xserver = {
videoDrivers = [ "modesetting" ];
};
Expand Down
19 changes: 9 additions & 10 deletions nix/soil/nixosConfigurations/lilac/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
...
}:
let
inherit (inputs) hardware lanzaboote;
inherit (inputs) hardware hercules-ci-agent lanzaboote;
inherit (inputs.cells) apps fonts my-emacs;

# This device will not be exposed to the public network. The domain
Expand All @@ -22,9 +22,8 @@ in
{
imports = [
cell.nixosProfiles.dae
cell.nixosProfiles.hercules-ci-agent
cell.nixosProfiles.libvirt
# REVIEW re-enable after upstream compatibility with Cachix 1.7.3.
# cell.nixosProfiles.hercules-ci-agent
cell.nixosSecrets.lilac
cell.nixosSuites.gnome-workstation
cell.nixosSuites.laptop
Expand All @@ -48,6 +47,7 @@ in
overlays = [
apps.overlays.unfree
fonts.overlays.proprius-fonts
hercules-ci-agent.overlays.default
lanzaboote.overlays.default
my-emacs.overlays.emacs
];
Expand Down Expand Up @@ -166,13 +166,12 @@ in
configFile = config.sops.secrets."dae/config.dae".path;
};

# REVIEW re-enable after upstream compatibility with Cachix 1.7.3.
# hercules-ci-agent = {
# settings = {
# binaryCachesPath = config.sops.secrets."hercules-ci/binary-caches.json".path;
# clusterJoinTokenPath = config.sops.secrets."hercules-ci/cluster-join-token.key".path;
# };
# };
hercules-ci-agent = {
settings = {
binaryCachesPath = config.sops.secrets."hercules-ci/binary-caches.json".path;
clusterJoinTokenPath = config.sops.secrets."hercules-ci/cluster-join-token.key".path;
};
};

xserver = {
videoDrivers = [ "nvidia" ];
Expand Down
12 changes: 12 additions & 0 deletions nix/soil/nixosSecrets/eustoma/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ in
"dae/config.dae" = {
restartUnits = [ "dae.service" ];
};

"hercules-ci/binary-caches.json" = {
mode = "0440";
owner = "hercules-ci-agent";
restartUnits = [ "hercules-ci-agent.service" ];
};

"hercules-ci/cluster-join-token.key" = {
mode = "0440";
owner = "hercules-ci-agent";
restartUnits = [ "hercules-ci-agent.service" ];
};
};
};
}
23 changes: 11 additions & 12 deletions nix/soil/nixosSecrets/lilac/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ in
restartUnits = [ "dae.service" ];
};

# REVIEW re-enable after upstream compatibility with Cachix 1.7.3.
# "hercules-ci/binary-caches.json" = {
# mode = "0440";
# owner = "hercules-ci-agent";
# restartUnits = [ "hercules-ci-agent.service" ];
# };
#
# "hercules-ci/cluster-join-token.key" = {
# mode = "0440";
# owner = "hercules-ci-agent";
# restartUnits = [ "hercules-ci-agent.service" ];
# };
"hercules-ci/binary-caches.json" = {
mode = "0440";
owner = "hercules-ci-agent";
restartUnits = [ "hercules-ci-agent.service" ];
};

"hercules-ci/cluster-join-token.key" = {
mode = "0440";
owner = "hercules-ci-agent";
restartUnits = [ "hercules-ci-agent.service" ];
};
};
};
}

0 comments on commit 89e21de

Please sign in to comment.