Merge pull request 'test' (#2) from test into main
All checks were successful
build / test (push) Successful in 1m13s
All checks were successful
build / test (push) Successful in 1m13s
Reviewed-on: #2
This commit is contained in:
commit
5d496726ff
|
@ -6,4 +6,4 @@ jobs:
|
|||
runs-on: nix
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: nix flake check -vL
|
||||
- run: nix flake check -L
|
||||
|
|
|
@ -4,8 +4,8 @@ This repository contains nixos modules and terraform code that powers clan.lol.
|
|||
The website and git hosting is currently on [hetzner](https://www.hetzner.com/).
|
||||
|
||||
## Servers
|
||||
|
||||
- web01:
|
||||
- soon to be replaced by baremetal hardware
|
||||
- Instance type: CPX42
|
||||
- CPU: 8 vCPUs on AMD
|
||||
- RAM: 16GB
|
||||
|
|
20
flake.nix
20
flake.nix
|
@ -37,7 +37,12 @@
|
|||
|
||||
outputs = inputs@{ flake-parts, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, ... }: {
|
||||
systems = lib.systems.flakeExposed;
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
imports = [
|
||||
inputs.treefmt-nix.flakeModule
|
||||
./targets/flake-module.nix
|
||||
|
@ -49,11 +54,8 @@
|
|||
programs.terraform.enable = true;
|
||||
programs.nixpkgs-fmt.enable = true;
|
||||
};
|
||||
packages.actions-runner = pkgs.callPackage ./pkgs/actions-runner.nix {
|
||||
inherit inputs;
|
||||
};
|
||||
packages.gitea = pkgs.callPackage ./pkgs/gitea {};
|
||||
packages.default = pkgs.mkShell {
|
||||
packages = {
|
||||
default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.bashInteractive
|
||||
pkgs.sops
|
||||
|
@ -67,6 +69,12 @@
|
|||
]))
|
||||
];
|
||||
};
|
||||
} // lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
||||
gitea = pkgs.callPackage ./pkgs/gitea { };
|
||||
actions-runner = pkgs.callPackage ./pkgs/actions-runner.nix {
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
let
|
||||
inherit (self.packages.${pkgs.hostPlatform.system}) actions-runner;
|
||||
in {
|
||||
in
|
||||
{
|
||||
systemd.services.gitea-actions-runner-nix-image = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
script = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user