Compare commits

...

4 commits

Author SHA1 Message Date
cc9cc45067
add pixi-flake 2024-05-22 15:06:32 -05:00
ff4ab8b397
add concurrency check 2024-05-22 15:06:19 -05:00
55b0e588e1
add on-demand builder 2024-05-22 14:58:23 -05:00
fdc7fe80d5
fixed this I guess 2024-05-22 12:55:26 -05:00
5 changed files with 88 additions and 1 deletions

45
.github/workflows/on-demand.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: Build NixOS (on demand)
on:
workflow_dispatch:
inputs:
host:
description: 'host name to build'
required: true
default: 'othalan'
type: string
lockFile:
description: 'flake.lock file'
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# free up some space
- run: sudo rm -rf /opt&
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v14
with:
name: daylin
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: write lock file
run: |
echo '${{ inputs.lockFile }}' > flake.lock
git diff
- name: Build
run: |
nix run . --accept-flake-config -- cache --host "${{ inputs.host }}" --flake .

View file

@ -625,6 +625,44 @@
"type": "github" "type": "github"
} }
}, },
"pixi": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"pixi-source": "pixi-source"
},
"locked": {
"lastModified": 1716407993,
"narHash": "sha256-PepVzzmXTZc5FNjU7qtLgmCaQC0jWcKbBFwFPSSLT48=",
"owner": "daylinmorgan",
"repo": "pixi-flake",
"rev": "89505eb8e06e18e207cb647892df4f524654ba64",
"type": "github"
},
"original": {
"owner": "daylinmorgan",
"repo": "pixi-flake",
"type": "github"
}
},
"pixi-source": {
"flake": false,
"locked": {
"lastModified": 1715601530,
"narHash": "sha256-fTASWWvqaBn4XH7FL0fhdSphKFKhIOddKwsbDmln1g8=",
"owner": "prefix-dev",
"repo": "pixi",
"rev": "c6d5bafdef8125a696294a1c6260bd69a614fd89",
"type": "github"
},
"original": {
"owner": "prefix-dev",
"ref": "v0.22.0",
"repo": "pixi",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"f1multiviewer": "f1multiviewer", "f1multiviewer": "f1multiviewer",
@ -635,6 +673,7 @@
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_5",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"pixi": "pixi",
"stable": "stable", "stable": "stable",
"tsm": "tsm", "tsm": "tsm",
"zig2nix": "zig2nix", "zig2nix": "zig2nix",

View file

@ -33,6 +33,9 @@
zls.inputs.nixpkgs.follows = "nixpkgs"; zls.inputs.nixpkgs.follows = "nixpkgs";
f1multiviewer.url = "github:daylinmorgan/f1multiviewer-flake"; f1multiviewer.url = "github:daylinmorgan/f1multiviewer-flake";
pixi.url = "github:daylinmorgan/pixi-flake";
pixi.inputs.nixpkgs.follows = "nixpkgs";
}; };
nixConfig = { nixConfig = {

View file

@ -11,6 +11,7 @@ let
in in
{ {
nixpkgs.overlays = defaultOverlays ++ [ nixpkgs.overlays = defaultOverlays ++ [
inputs.pixi.overlays.default
(final: _prev: { (final: _prev: {
stable = import inputs.stable { stable = import inputs.stable {
system = final.system; system = final.system;

View file

@ -8,7 +8,6 @@
| kernel: ucsi_acpi USBC000:00: possible UCSI driver bug 2 | kernel: ucsi_acpi USBC000:00: possible UCSI driver bug 2
| kernel: ucsi_acpi USBC000:00: error -EINVAL: PPM init failed | kernel: ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
- [ ] trackdown wezterm clipboard problem (wayland/wezterm/hyprland?)
- [ ] make desktop application file for win10 vm - [ ] make desktop application file for win10 vm
<!-- generated with <3 by daylinmorgan/todo --> <!-- generated with <3 by daylinmorgan/todo -->