Testing
This commit is contained in:
parent
cf38332da9
commit
af2080570d
3 changed files with 33 additions and 12 deletions
.forgejo/workflows
nixos
|
@ -5,7 +5,7 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
|
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
|
||||||
jobs:
|
jobs:
|
||||||
lockfile:
|
update:
|
||||||
runs-on: forgejo
|
runs-on: forgejo
|
||||||
container:
|
container:
|
||||||
image: git.sysctl.io/albert/actions-images/node:latest
|
image: git.sysctl.io/albert/actions-images/node:latest
|
||||||
|
@ -19,13 +19,7 @@ jobs:
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: actions/nix-installer-action@main
|
uses: actions/nix-installer-action@main
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
uses: actions/update-flake-lock@main
|
run: nix flake update
|
||||||
with:
|
|
||||||
pr-title: "Update flake.lock"
|
|
||||||
pr-labels: |
|
|
||||||
dependencies
|
|
||||||
automated
|
|
||||||
pr-assignees: albert
|
|
||||||
- name: Send Notification
|
- name: Send Notification
|
||||||
uses: actions/gotify-action@master
|
uses: actions/gotify-action@master
|
||||||
if: always()
|
if: always()
|
||||||
|
@ -38,3 +32,31 @@ jobs:
|
||||||
Repo: ${{ github.repository }}
|
Repo: ${{ github.repository }}
|
||||||
Status: ${{ job.status }}
|
Status: ${{ job.status }}
|
||||||
Commit: ${{ github.sha }}
|
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 }}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
clean_working_directory = true;
|
clean_working_directory = true;
|
||||||
};
|
};
|
||||||
valid_volumes = [
|
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
|
"/dev/net/tun:/dev/net/tun:rw" # Tunnel device mapping
|
||||||
"/nix/store:/nix/store:ro" # Standard Nix requirement
|
"/nix/store:/nix/store:ro" # Standard Nix requirement
|
||||||
];
|
];
|
||||||
|
|
|
@ -34,9 +34,7 @@
|
||||||
# boot.extraModulePackages = [ ];
|
# boot.extraModulePackages = [ ];
|
||||||
# boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
# boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||||
|
|
||||||
# FIX: One of these is causing it...
|
boot.kernelPackages = pkgs.linuxPackages-rt_latest;
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"usbcore.autosuspend=-1" # Disable USB autosuspend
|
"usbcore.autosuspend=-1" # Disable USB autosuspend
|
||||||
"pcie_aspm=off" # Disable ASPM for PCIe devices
|
"pcie_aspm=off" # Disable ASPM for PCIe devices
|
||||||
|
|
Loading…
Add table
Reference in a new issue