Compare commits
2 commits
c9932cce70
...
d5817599ed
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5817599ed | ||
|
|
de5649cc5c |
4 changed files with 21 additions and 9 deletions
|
|
@ -1,9 +1,9 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: native:host
|
||||
steps:
|
||||
# - uses: DeterminateSystems/nix-installer-action@main
|
||||
# - uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
# - run: nix flake check .
|
||||
- run: echo hi
|
||||
- run: nix flake check .
|
||||
# - run: echo hi
|
||||
|
|
|
|||
|
|
@ -18,12 +18,20 @@ in
|
|||
];
|
||||
|
||||
nix.settings = {
|
||||
allowed-users = [ "gitea-runner" ];
|
||||
trusted-users = [ "gitea-runner" ];
|
||||
allowed-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
"@builders"
|
||||
"gitea-runner"
|
||||
];
|
||||
trusted-users = [
|
||||
"root"
|
||||
"gitea-runner"
|
||||
];
|
||||
};
|
||||
sops.secrets.forgejo-runners-token = {
|
||||
# owner = "gitea-runner";
|
||||
# group = "gitea-runner";
|
||||
owner = "gitea-runner";
|
||||
group = "gitea-runner";
|
||||
mode = "0777";
|
||||
};
|
||||
services.gitea-actions-runner = {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ in
|
|||
autoRollback = false;
|
||||
magicRollback = true;
|
||||
user = "root";
|
||||
remoteBuild = true;
|
||||
# remoteBuild = true;
|
||||
nodes = lib.mapAttrs genNode deployableNodes;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,11 +8,15 @@
|
|||
];
|
||||
zramSwap.enable = true;
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
nixpkgs.overlays = [ flake.inputs.self.overlays.default ];
|
||||
nixpkgs.overlays = [
|
||||
flake.inputs.self.overlays.default
|
||||
# flake.inputs.deploy-rs.overlays.default
|
||||
];
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
deploy-rs
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue