forked from malobeo/infrastructure
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
9c55854987
|
|||
| 8e7c9141c2 | |||
|
ea2ba8637b
|
|||
| c40d84ba4d | |||
|
|
bd859dd40d | ||
|
3ccd73788c
|
|||
| b2fc2d126f | |||
| bf3f4db1b2 | |||
| f4614f2887 | |||
| 07d7f3b882 |
@@ -2,7 +2,7 @@ name: Weekly Flake Update
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 4"
|
- cron: "0 4 /14 * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -102,6 +102,18 @@ jobs:
|
|||||||
-L "bump"
|
-L "bump"
|
||||||
-t "$COMMIT_MSG"
|
-t "$COMMIT_MSG"
|
||||||
-d "$COMMIT_DESC"
|
-d "$COMMIT_DESC"
|
||||||
|
- name: close other bump requests
|
||||||
|
run: |
|
||||||
|
for i in $(tea pr -o simple | grep "Automatic Nixpkgs update" | awk '{print $1}')
|
||||||
|
do
|
||||||
|
if [ "$i" = "" ]
|
||||||
|
then
|
||||||
|
echo "No bumps to close"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
tea pr close $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
- name: Skip pull request
|
- name: Skip pull request
|
||||||
if: steps.no-pr.outcome == 'failure'
|
if: steps.no-pr.outcome == 'failure'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
63
.gitea/workflows/hydra-callback.yml
Normal file
63
.gitea/workflows/hydra-callback.yml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
name: Hydra callback
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
paths:
|
||||||
|
- '**.nix'
|
||||||
|
- flake.lock
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- '**.nix'
|
||||||
|
- flake.lock
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
on_pr:
|
||||||
|
if: github.event.pull_request
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NIXPKGS_ALLOW_UNFREE: 1
|
||||||
|
steps:
|
||||||
|
- name: Install sudo
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y sudo
|
||||||
|
- name: Set up Nix
|
||||||
|
uses: https://github.com/cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }}
|
||||||
|
- name: Find pr number
|
||||||
|
run: |
|
||||||
|
echo PR=$(echo "${{ github.ref }}" | cut -d / -f 3) >> "$GITHUB_ENV"
|
||||||
|
- name: run hydra wait
|
||||||
|
timeout-minutes: 200
|
||||||
|
run: |
|
||||||
|
echo "Running now @ pr no $PR"
|
||||||
|
nix run nixpkgs#hydra-cli -- -H https://hydra.dynamicdiscord.de jobset-wait malobeo2 "$PR"
|
||||||
|
|
||||||
|
on_push:
|
||||||
|
if: github.event.push
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
NIXPKGS_ALLOW_UNFREE: 1
|
||||||
|
steps:
|
||||||
|
- name: Install sudo
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y sudo
|
||||||
|
- name: Set up Nix
|
||||||
|
uses: https://github.com/cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }}
|
||||||
|
- name: run hydra wait
|
||||||
|
timeout-minutes: 200
|
||||||
|
run: |
|
||||||
|
echo "Running now @ master"
|
||||||
|
nix run nixpkgs#hydra-cli -- -H https://hydra.dynamicdiscord.de jobset-wait malobeo2 master
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"type": 0,
|
"type": 0,
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixexpr": {
|
"nixexpr": {
|
||||||
"value": "https://git.dynamicdiscord.de/ahtlon/infrastructure master",
|
"value": "https://git.dynamicdiscord.de/malobeo/infrastructure master",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"emailresponsible": false
|
"emailresponsible": false
|
||||||
},
|
},
|
||||||
|
|||||||
38
flake.lock
generated
38
flake.lock
generated
@@ -126,11 +126,11 @@
|
|||||||
"spectrum": "spectrum"
|
"spectrum": "spectrum"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772055583,
|
"lastModified": 1776340739,
|
||||||
"narHash": "sha256-iPIm1orqkhsxqju6EVODOrV1BmyA5HNTZ8a1o812bFM=",
|
"narHash": "sha256-s4FDictJlPtY6Shd6scG5hgrDMiHth09+svtvTA5NLA=",
|
||||||
"owner": "astro",
|
"owner": "astro",
|
||||||
"repo": "microvm.nix",
|
"repo": "microvm.nix",
|
||||||
"rev": "f6dcfb7c16cc3775536c825dc0698d4ede13d063",
|
"rev": "2f2f62fdfdca2750e3399f66bd03986ab967e5ca",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -177,11 +177,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771969195,
|
"lastModified": 1777917524,
|
||||||
"narHash": "sha256-qwcDBtrRvJbrrnv1lf/pREQi8t2hWZxVAyeMo7/E9sw=",
|
"narHash": "sha256-k+LVe9YaO2BEPB9AaCtTtOMCeGi4dxDo6gt4Un3qoPY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "41c6b421bdc301b2624486e11905c9af7b8ec68e",
|
"rev": "df7783100babf59001340a7a874ba3824e441ecb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -209,11 +209,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771848320,
|
"lastModified": 1777578337,
|
||||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
"narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
"rev": "15f4ee454b1dce334612fa6843b3e05cf546efab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -225,11 +225,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771903837,
|
"lastModified": 1777673416,
|
||||||
"narHash": "sha256-sdaqdnsQCv3iifzxwB22tUwN/fSHoN7j2myFW5EIkGk=",
|
"narHash": "sha256-5c2POKPOjU40Kh0MirOdScBLG0bu9TAuPYAtPRNZMBs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e764fc9a405871f1f6ca3d1394fb422e0a0c3951",
|
"rev": "26ef669cffa904b6f6832ab57b77892a37c1a671",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -264,11 +264,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772048434,
|
"lastModified": 1777944972,
|
||||||
"narHash": "sha256-/wA0OaH6kZ/pFA+nXR/tvg5oupOmEDmMS5us79JT60o=",
|
"narHash": "sha256-VfGRo1qTBKOe3s2gOv8LSoA6Fk19PvBlwQ1ECN0Evn8=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "334daa7c273dd8bf7a0cd370e4e16022b64e55e9",
|
"rev": "c591bf665727040c6cc5cb409079acb22dcce33c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -280,11 +280,11 @@
|
|||||||
"spectrum": {
|
"spectrum": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759482047,
|
"lastModified": 1772189877,
|
||||||
"narHash": "sha256-H1wiXRQHxxPyMMlP39ce3ROKCwI5/tUn36P8x6dFiiQ=",
|
"narHash": "sha256-i1p90Rgssb//aNiTDFq46ZG/fk3LmyRLChtp/9lddyA=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "c5d5786d3dc938af0b279c542d1e43bce381b4b9",
|
"rev": "fe39e122d898f66e89ffa17d4f4209989ccb5358",
|
||||||
"revCount": 996,
|
"revCount": 1255,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://spectrum-os.org/git/spectrum"
|
"url": "https://spectrum-os.org/git/spectrum"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ in
|
|||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.python3}/bin/python3 ${inputs.self + /scripts/gitea_hydra_server.py} \
|
${pkgs.python3}/bin/python3 ${../../../scripts/gitea_hydra_server.py} \
|
||||||
--baseurl ${cfg.baseurl} \
|
--baseurl ${cfg.baseurl} \
|
||||||
--owner ${cfg.owner} \
|
--owner ${cfg.owner} \
|
||||||
--repo ${cfg.repo} \
|
--repo ${cfg.repo} \
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
trusted_domains = [ "cloud.malobeo.org" "cloud.hq.malobeo.org" ];
|
trusted_domains = [ "cloud.malobeo.org" "cloud.hq.malobeo.org" ];
|
||||||
trusted_proxies = [ hosts.malobeo.hosts.fanny.network.address ];
|
trusted_proxies = [ hosts.malobeo.hosts.fanny.network.address ];
|
||||||
|
overwriteprotocol = "https";
|
||||||
"maintenance_window_start" = "1";
|
"maintenance_window_start" = "1";
|
||||||
"default_phone_region" = "DE";
|
"default_phone_region" = "DE";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, self, lib, pkgs, ... }:
|
{ config, self, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@@ -58,6 +58,7 @@ in
|
|||||||
|
|
||||||
services.pretalx = {
|
services.pretalx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = inputs.nixpkgs-unstable.legacyPackages."x86_64-linux".pretalx;
|
||||||
celery.extraArgs = [
|
celery.extraArgs = [
|
||||||
"--concurrency=${toString config.microvm.vcpu}"
|
"--concurrency=${toString config.microvm.vcpu}"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ in (utils.lib.eachSystem (builtins.filter filter_system utils.lib.defaultSystems
|
|||||||
users.imports = [ ./machines/modules/malobeo/users.nix ];
|
users.imports = [ ./machines/modules/malobeo/users.nix ];
|
||||||
backup.imports = [ ./machines/modules/malobeo/backup.nix ];
|
backup.imports = [ ./machines/modules/malobeo/backup.nix ];
|
||||||
printing.imports = [ ./machines/modules/malobeo/printing.nix ];
|
printing.imports = [ ./machines/modules/malobeo/printing.nix ];
|
||||||
|
gitea-translator.imports = [ ./machines/modules/malobeo/gitea_translator.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
hydraJobs = nixpkgs.lib.mapAttrs (_: nixpkgs.lib.hydraJob) (
|
hydraJobs = nixpkgs.lib.mapAttrs (_: nixpkgs.lib.hydraJob) (
|
||||||
|
|||||||
Reference in New Issue
Block a user