Compare commits
1 commit
1ccd2f8b98
...
bdb8fbc1a5
Author | SHA1 | Date | |
---|---|---|---|
bdb8fbc1a5 |
6 changed files with 25 additions and 101 deletions
|
@ -10,7 +10,4 @@ jobs:
|
|||
- name: Attic login
|
||||
run: attic login sisko http://10.100.0.1:8081 ${{secrets.ATTIC_SISKO_TOKEN}}
|
||||
- name: Build with nix
|
||||
run: nix-fast-build --no-nom --skip-cached --systems "x86_64-linux aarch64-linux" --attic-cache "sisko" --result-file result.json || true
|
||||
- name: Report checks
|
||||
run: report-checks
|
||||
|
||||
run: nix-fast-build --no-nom --skip-cached --systems "x86_64-linux aarch64-linux" --attic-cache "sisko"
|
||||
|
|
44
flake.lock
generated
44
flake.lock
generated
|
@ -119,11 +119,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732468280,
|
||||
"narHash": "sha256-z04IEIYlO/KMeXQCt7neM/WDlIVtQjy+QGDrTwDNwHc=",
|
||||
"lastModified": 1732266182,
|
||||
"narHash": "sha256-NuajQPP1ZVtviwC+Y3J42RV7V7TsCo+A+ux2aC9oW9s=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "72c506de74f90bc47bfe62627844b973b493a377",
|
||||
"rev": "2bbf361a5d58fd97f31bd871e334f0682b98c905",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -485,11 +485,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732472774,
|
||||
"narHash": "sha256-nfD12L8mm1Zcg0keslWrQgaqj+ZSjQnK6Hf6ryIZA0c=",
|
||||
"lastModified": 1732025103,
|
||||
"narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "83002f18468c4471d5f8de8c542ed2422badbf8f",
|
||||
"rev": "a46e702093a5c46e192243edbd977d5749e7f294",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -589,11 +589,11 @@
|
|||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732351635,
|
||||
"narHash": "sha256-H94CcQ3yamG5+RMxtxXllR02YIlxQ5WD/8PcolO9yEA=",
|
||||
"lastModified": 1731890968,
|
||||
"narHash": "sha256-6xMxT2duVMO6fo1AXfTjqh7LW3ZmNiHw6kBaAhweLGo=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "dfc286ca3dc49118c30d8d6205d6d6af76c62b7a",
|
||||
"revCount": 617,
|
||||
"rev": "912a9d63319e71ca131e16eea3348145a255db2e",
|
||||
"revCount": 616,
|
||||
"type": "git",
|
||||
"url": "https://git.lix.systems/lix-project/nix-eval-jobs"
|
||||
},
|
||||
|
@ -699,11 +699,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731952509,
|
||||
"narHash": "sha256-p4gB3Rhw8R6Ak4eMl8pqjCPOLCZRqaehZxdZ/mbFClM=",
|
||||
"lastModified": 1729742964,
|
||||
"narHash": "sha256-B4mzTcQ0FZHdpeWcpDYPERtyjJd/NIuaQ9+BV1h+MpA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-github-actions",
|
||||
"rev": "7b5f051df789b6b20d259924d349a9ba3319b226",
|
||||
"rev": "e04df33f62cdcf93d73e9a04142464753a16db67",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -740,11 +740,11 @@
|
|||
"nixpkgs": "nixpkgs_5"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732420287,
|
||||
"narHash": "sha256-CzvYF4x6jUh/+NEEIFrIY5t1W/N3IA2bNZJiMXu9GTo=",
|
||||
"lastModified": 1732229547,
|
||||
"narHash": "sha256-vtUhSQFgDfyyNM6rgmn35A2T+L5PXBS0H89cxWK9N2A=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "3c52583b99666a349a6219dc1f0dd07d75c82d6a",
|
||||
"rev": "edabc790a834326dcb5810e2698fa743483510d0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1284,11 +1284,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732292307,
|
||||
"narHash": "sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw=",
|
||||
"lastModified": 1730321837,
|
||||
"narHash": "sha256-vK+a09qq19QNu2MlLcvN4qcRctJbqWkX7ahgPZ/+maI=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "705df92694af7093dfbb27109ce16d828a79155f",
|
||||
"rev": "746901bb8dba96d154b66492a29f5db0693dbfcc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1325,11 +1325,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1732292307,
|
||||
"narHash": "sha256-5WSng844vXt8uytT5djmqBCkopyle6ciFgteuA9bJpw=",
|
||||
"lastModified": 1732187120,
|
||||
"narHash": "sha256-XdW2mYXvPHYtZ8oQqO3tRYtxx7kI0Hs3NU64IwAtD68=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "705df92694af7093dfbb27109ce16d828a79155f",
|
||||
"rev": "37f8f47cb618eddee0c0dd31a582b1cd3013c7f6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
screenshotScript = pkgs.writeShellScriptBin "screenshot.sh" ''
|
||||
filename="$HOME/shots/$(date --iso-8601=seconds).png"
|
||||
|
|
|
@ -18,7 +18,7 @@ input {
|
|||
}
|
||||
|
||||
monitor = HDMI-A-1, 2560x1440, 0x0, 1 # picard
|
||||
monitor = eDP-1, 1920x1080, 0x0, 1, mirror, DP-1 # kirk
|
||||
monitor = eDP-1, 1920x1080, 0x0, 1 # kirk
|
||||
|
||||
bindl=,switch:off:Lid Switch,exec,switch-monitor.sh open
|
||||
bindl=,switch:on:Lid Switch,exec,switch-monitor.sh close
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
{
|
||||
writers,
|
||||
python3Packages,
|
||||
fetchFromGitea,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pyforgejo = python3Packages.buildPythonPackage rec {
|
||||
pname = "pyforgejo";
|
||||
version = "1.0.4";
|
||||
|
||||
pyproject = true;
|
||||
build-system = [ python3Packages.poetry-core ];
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "harabat";
|
||||
repo = "pyforgejo";
|
||||
rev = "3dba949bea41140a47e4dd422a84a6da9fd394e9";
|
||||
hash = "sha256-qVXlfhKrc7yBnRvL/65bLZFW9fDjC+8FNz7yA6iMPp4=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"httpx"
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
attrs
|
||||
httpx
|
||||
python-dateutil
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyforgejo" ];
|
||||
};
|
||||
in
|
||||
writers.writePython3Bin "report-checks" {
|
||||
libraries = [ pyforgejo ];
|
||||
flakeIgnore = [ "E501" ];
|
||||
} (builtins.readFile ./forgejo-report-checks.py)
|
|
@ -1,30 +0,0 @@
|
|||
from pyforgejo import AuthenticatedClient
|
||||
from pyforgejo.api.repository import repo_create_status
|
||||
from pyforgejo.models.create_status_option import CreateStatusOption
|
||||
import json
|
||||
from os import environ
|
||||
|
||||
client = AuthenticatedClient(base_url=environ["GITHUB_API_URL"], token=environ["GITHUB_TOKEN"])
|
||||
|
||||
print("hello")
|
||||
|
||||
with open('result.json', 'r') as file:
|
||||
data = json.load(file)
|
||||
|
||||
for result in data['results']:
|
||||
attr = result['attr']
|
||||
success = result['success']
|
||||
type = result['type']
|
||||
print(attr)
|
||||
response = repo_create_status.sync_detailed(
|
||||
owner="aciceri",
|
||||
repo="nixfleet",
|
||||
sha=environ["GITHUB_SHA"],
|
||||
client=client,
|
||||
body=CreateStatusOption(
|
||||
context=type,
|
||||
description=attr,
|
||||
target_url="https://google.com",
|
||||
state="success" if success else "failure" # ma be pending,success,failure,error_message
|
||||
)
|
||||
)
|
Loading…
Add table
Reference in a new issue