Skip to content

Commit

Permalink
make basic post checkout step working
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Jun 9, 2023
1 parent 7ea399a commit c3c2261
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 16 additions & 4 deletions .github/nix_config/ci-runner/configuration.nix
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,20 @@
url = "https://github.com/cherusk/godon";
tokenFile = "/srv/gh_runner.token";
extraLabels = [ "nixos" "osuosl" ];
extraPackages = with pkgs; [ nixos-generators mask docker ];
workDir = "/github-runner/";
serviceOverrides = {
PrivateUsers = false;
DynamicUser = false;
PrivateDevices = false;
PrivateMounts = false;
};
};
};

# create github-runner work dir
systemd.tmpfiles.rules = [ "d /github-runner/ 0755 root root -" ];

environment.systemPackages = let pythonModules = pythonPackages: with pythonPackages; [ pyyaml ];
in with pkgs; [
(python3.withPackages pythonModules)
Expand All @@ -59,6 +70,7 @@
killall
mask
nmap
nixos-generators
openssh
parted
pciutils
Expand All @@ -82,15 +94,15 @@
];
};

users.users.github-runner = {
users.users.github-runner-nixos = {
isNormalUser = true;
home = "/home/github-runner/";
home = "/home/github-runner-nixos/";
extraGroups = [ "wheel" "docker" "libvirtd" ];
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLt7w6tl++WJT/Bn1HsOep25KpgL867SuZAnK5ifOgd6wS0PxHGiCD/4A0RSHdHZTXMv37DGlC36rhlWJUdsncI5O1F5Ay2d626fPg+REaGi8R7Hox/qInkDs9/NS2IbZvQaYIdeDK151McagWijRFCxTEMYftpslXWKiN5ckP/KjFdUkS7fKcGwqk+UFy7ehMF42i8MUOdkZMJwy8Yc2y4FTdzlrh8VELkMxCePcU9LrvwY5sSh9j65Q5IcIBlma36JMJZQLuEWi7oEGAASehUNeMXs9WFkbyCCWdR1PjHNfbrgZUpgw71SkiQrM8+9/jcfyl5kfkn+GUECQcWBDQnbi809re1ZVmOSUrDBAoEAevFO8qHLgz0d9H0Zs/EOghyN+a4eBLB3et46F733GYGGO4AMMvRSibeyHCLINCLeV19FkHXSxD5iXTRt6WXo3vhKC/tw0XN0yNSOc1nHC+azAJxG6zOxzUzXjC9c1wxaWmGReeanlefQTHVRcMtBfm1NAOwaD0DubSTEBeRRMHfW2ZRs3nV0l73HJWh9J8+5MTpCOK7BGzC0LILMsSqpltUTLI3YmFO5Ly9RokUbcFmnn4Yu4IreTITMmn73CuLNkjZIKwucWmJkWNmWc1hrLRO12Yad/aQS+rczKcQFoNXl+bBmIAOWYJ1C6mSKG/Hw== ci_runner@gh"
];
};


virtualisation = {
docker.enable = true;
vswitch.enable = true;
Expand All @@ -107,5 +119,5 @@

nixpkgs.config.allowUnfree = true;

system.nixos.version = "21.11";
system.nixos.version = "23.05";
}
1 change: 0 additions & 1 deletion .github/workflows/controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ jobs:
- name: do post checkout
run: >
pushd api && mask api generate && popd;
chown -R github-runner:users *

0 comments on commit c3c2261

Please sign in to comment.