This commit is contained in:
albert 2025-02-04 09:20:54 -08:00
parent cf38332da9
commit af2080570d
Signed by: albert
GPG key ID: 3895DD267CA11BA9
3 changed files with 33 additions and 12 deletions
.forgejo/workflows
nixos
common/services
hosts/framework16

View file

@ -5,7 +5,7 @@ on:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
lockfile:
update:
runs-on: forgejo
container:
image: git.sysctl.io/albert/actions-images/node:latest
@ -19,13 +19,7 @@ jobs:
- name: Install Nix
uses: actions/nix-installer-action@main
- name: Update flake.lock
uses: actions/update-flake-lock@main
with:
pr-title: "Update flake.lock"
pr-labels: |
dependencies
automated
pr-assignees: albert
run: nix flake update
- name: Send Notification
uses: actions/gotify-action@master
if: always()
@ -38,3 +32,31 @@ jobs:
Repo: ${{ github.repository }}
Status: ${{ job.status }}
Commit: ${{ github.sha }}
check:
runs-on: forgejo
container:
image: git.sysctl.io/albert/actions-images/node:latest
steps:
- name: Add Gotify to Hosts
run: echo "100.64.0.5 gotify.sysctl.io" >> /etc/hosts
- name: Setup Node
uses: actions/setup-node@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: actions/nix-installer-action@main
- name: Check flake.lock
run: nix flake check
- name: Send Notification
uses: actions/gotify-action@master
if: always()
with:
gotify_api_base: ${{ secrets.GOTIFY_URL }}
gotify_app_token: ${{ secrets.GOTIFY_TOKEN }}
notification_title: |
${{ github.workflow }}: ${{ job.status }}
notification_message: |
Repo: ${{ github.repository }}
Status: ${{ job.status }}
Commit: ${{ github.sha }}

View file

@ -31,7 +31,8 @@
clean_working_directory = true;
};
valid_volumes = [
"/run/podman/podman.sock:/run/podman/podman.sock:rw" # Docker socket
"/run/podman/podman.sock:/run/podman/podman.sock:rw" # Poadman socket
"/run/podman/docker.sock:/run/podman/docker.sock:rw" # Docker socket
"/dev/net/tun:/dev/net/tun:rw" # Tunnel device mapping
"/nix/store:/nix/store:ro" # Standard Nix requirement
];

View file

@ -34,9 +34,7 @@
# boot.extraModulePackages = [ ];
# boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
# FIX: One of these is causing it...
# boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.linuxPackages-rt_latest;
boot.kernelParams = [
"usbcore.autosuspend=-1" # Disable USB autosuspend
"pcie_aspm=off" # Disable ASPM for PCIe devices