Skip to content

Commit

Permalink
style: reformat code for consistency and add zip package (#20)
Browse files Browse the repository at this point in the history
- Reformat the code to ensure consistent spacing and alignment.
- Add the `zip` package to the `extraPackages` list.
  • Loading branch information
erikreinert authored Jun 12, 2024
1 parent 9df7d1f commit fb8906e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/mixins/github-actions/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# GitHub Actions runner mixin
# In theory, compatible with x86_64-linux and aarch64-linux.
{ pkgs, ... }:
{
{pkgs, ...}: {
imports = [
../alloy
../docker
Expand All @@ -15,14 +14,14 @@
'';
settings = {
cores = 4;
trusted-users = [ "root" "github-runner" ];
trusted-users = ["root" "github-runner"];
};
};

users.groups.github-runner = { };
users.groups.github-runner = {};
users.users.github-runner = {
group = "github-runner";
extraGroups = [ "docker" ];
extraGroups = ["docker"];
isNormalUser = true;
home = "/run/github-runner/runner";
};
Expand All @@ -34,11 +33,11 @@
user = "github-runner";
tokenFile = "/run/keys/github-runner";
serviceOverrides = {
ReadWritePaths = [ "/nix/var/nix/profiles/per-user/" ];
ReadWritePaths = ["/nix/var/nix/profiles/per-user/"];
ProtectHome = "tmpfs";
};

extraLabels = [ "nixos" "nix" pkgs.stdenv.system ];
extraLabels = ["nixos" "nix" pkgs.stdenv.system];

extraPackages = with pkgs; [
awscli2
Expand Down Expand Up @@ -73,6 +72,7 @@
util-linux
which
xz
zip
zstd
];
};
Expand Down

0 comments on commit fb8906e

Please sign in to comment.