15 Commits

Author SHA1 Message Date
e2e9a60907 update flake
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 10m34s
2025-04-17 17:41:03 +02:00
26448d59d6 copy screenshot to clipboard automatically
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m39s
2025-04-16 16:28:49 +02:00
4d140208b3 change name for chromium apps on iso
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 12m14s
2025-04-16 15:02:19 +02:00
d965848b31 create iso only when there is a push to master
Some checks failed
Build iso when a new version is pushed / test (push) Has been cancelled
2025-04-16 14:57:32 +02:00
a6eaa69a1c second try of final build
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 11m50s
2025-04-16 02:25:19 +02:00
2eeff79ea0 fix workflow release name
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 7s
2025-04-16 02:22:56 +02:00
7044d1eebb create release with curl in workflow
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 6s
2025-04-16 02:16:54 +02:00
ca2a2a8e8d re-enable iso build and test final auto release
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 7m50s
2025-04-15 21:31:38 +02:00
a5762a6a45 change tag name auto release
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 8s
2025-04-15 21:30:00 +02:00
d5df83a046 use gitea-release-action
All checks were successful
Build iso when a new version is pushed / test (push) Successful in 9s
2025-04-15 21:28:03 +02:00
1c38dc5686 fix workflow file
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 12s
2025-04-15 20:06:46 +02:00
b55c6baf47 fix workflow syntax
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 12s
2025-04-15 20:01:32 +02:00
7887f3c650 add tag to release step 2025-04-15 20:00:48 +02:00
de34ac63af create tag automatically on push
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13s
2025-04-15 19:54:43 +02:00
64f4635618 add version on go setup
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 17s
2025-04-15 19:47:58 +02:00
6 changed files with 72 additions and 38 deletions

View File

@ -1,6 +1,9 @@
name: Build iso when a new version is pushed
run-name: iso building
on: [push]
on:
push:
branches:
- 'master'
jobs:
test:
@ -14,13 +17,44 @@ jobs:
- name: install go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
#- name: build iso
# run: make iso
- name: build iso
run: make iso
- name: get commit tag
id: vars
run: echo "TAG=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: create tag
run: |
git config user.name "gitea-actions"
git config user.email "actions@gitea.com"
git tag ${{steps.vars.outputs.TAG}}
git push origin ${{steps.vars.outputs.TAG}}
- name: create release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
flake.nix
api_key: '${{secrets.RELEASE_TOKEN}}'
run: |
AUTH_TOKEN=${{secrets.RELEASE_TOKEN}}
TAG_NAME=${{steps.vars.outputs.TAG}}
owner=tom
repo=nix-config
set -e
release_create_res=$(curl -X POST -H "Authorization: token $AUTH_TOKEN" -H "content-type: application/json" -d "{\"tag_name\":\"$TAG_NAME\",\"name\":\"$TAG_NAME\"}" "https://git.tmoron.fr/api/v1/repos/$owner/$repo/releases" 2>/dev/null)
release_id=$(echo $release_create_res | jq -r .id)
echo $release_id
if [ $release_id == "null" ]; then
echo error
exit 1
fi
file_send_res=$(curl \
"https://git.tmoron.fr/api/v1/repos/$owner/$repo/releases/$release_id/assets?name=nixos.iso"\
-H "Authorization: token $AUTH_TOKEN"\
-H "accept: application/json"\
-H "Content-Type: multipart/form-data"\
-F "attachment=@nixos.iso" 2>/dev/null)
echo $file_send_res

24
flake.lock generated
View File

@ -8,11 +8,11 @@
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1744173435,
"narHash": "sha256-q5cViHmB4k1CdncBUVBY4UUukiKQxgBJ6R18qJ3pHOA=",
"lastModified": 1744903587,
"narHash": "sha256-Un9rJxwzlgALegN+6eXdPWtrP19dq/Ex6wlxaUJZLv4=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "e7ea586f82360a06ec21f14544bc26b10aa1aea6",
"rev": "6fba1be0f816617405d037be62ce39acb93693cc",
"type": "gitlab"
},
"original": {
@ -29,11 +29,11 @@
]
},
"locked": {
"lastModified": 1744208565,
"narHash": "sha256-vG3JJOar/r8ognz7wuwMtOJ8Knu1MMlOzHB1N6R2MbY=",
"lastModified": 1744902080,
"narHash": "sha256-px7OEMQYhS9StY3sTYYeM/jJspk6SXgoPU7OmOSx+1c=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "542efdf2dfac351498f534eb71671525b9bd45ed",
"rev": "2c71aae678c03a39c2542e136b87bd040ae1b3cb",
"type": "github"
},
"original": {
@ -44,11 +44,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1743420942,
"narHash": "sha256-b/exDDQSLmENZZgbAEI3qi9yHkuXAXCPbormD8CSJXo=",
"lastModified": 1744633460,
"narHash": "sha256-fbWE4Xpw6eH0Q6in+ymNuDwTkqmFmtxcQEmtRuKDTTk=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "de6fc5551121c59c01e2a3d45b277a6d05077bc4",
"rev": "9a049b4a421076d27fee3eec664a18b2066824cb",
"type": "github"
},
"original": {
@ -60,11 +60,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1744098102,
"narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=",
"lastModified": 1744463964,
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7",
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
"type": "github"
},
"original": {

View File

@ -1,5 +1,5 @@
{ lib, pkgs, ... }:
{
mods.discord.enable = false;
mods.nonChromium.enable = false;
}

View File

@ -1,16 +0,0 @@
{ config, lib, pkgs, ... }:
{
options.mods.discord.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "install discord";
};
config = lib.mkIf config.mods.discord.enable {
home.packages = with pkgs;[
discord
google-chrome
];
};
}

View File

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
{
options.mods.nonChromium.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "all chromium/electron based application can't be built by act-runner, so they can't be in the iso";
};
config = lib.mkIf config.mods.nonChromium.enable {
home.packages = with pkgs;[
discord
google-chrome
];
};
}

View File

@ -13,7 +13,7 @@
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
bind = [
" , Print, exec, grim -t jpeg -g \"$(slurp)\" ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg"
" , Print, exec, grim -t png -g \"$(slurp)\" /dev/stdout | tee ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png | wl-copy -t image/png"
"$mainMod, Return, exec, alacritty"
"CTRL_ALT, Q, killactive,"
"SUPER_ALT, Q, exit,"