Compare commits

...

14 Commits

Author SHA1 Message Date
gitea actions 4bf4945443 update helium to 0.10.6.1 2026-03-21 06:00:34 +00:00
thomas c401dde8d5 add cursor
helium update / update-helium (push) Successful in 10s
zen browser update / update-zen-browser (push) Successful in 5s
handy update / update-handy (push) Successful in 5s
2026-03-20 10:57:49 +00:00
thomas c29451d38a fix unraid mnts 2026-03-20 10:57:49 +00:00
thomas 3f2e3d99e5 update zen browser to 1.19.3b (#14)
helium update / update-helium (push) Successful in 15s
zen browser update / update-zen-browser (push) Successful in 5s
handy update / update-handy (push) Successful in 6s
automated update of zen browser appimage version and hash

## changelog
from `1.19.2b` to `1.19.3b`

upstream release: https://github.com/zen-browser/desktop/releases/tag/1.19.3b

Co-authored-by: gitea actions <actions@localhost>
Reviewed-on: #14
2026-03-19 14:31:04 +00:00
thomas b419bf6cf3 update handy to 0.7.12 (#16)
automated update of handy appimage version and hash

## changelog
from `0.7.10` to `0.7.12`

upstream release: https://github.com/cjpais/Handy/releases/tag/v0.7.12

Co-authored-by: gitea actions <actions@localhost>
Reviewed-on: #16
2026-03-19 14:30:57 +00:00
thomas 314fa8cd0e add bat to packages.nix
helium update / update-helium (push) Successful in 7s
zen browser update / update-zen-browser (push) Successful in 10s
handy update / update-handy (push) Successful in 11s
2026-03-17 16:20:47 +00:00
thomas 0d2877a861 update helium to 0.10.5.1 (#13)
helium update / update-helium (push) Successful in 6s
zen browser update / update-zen-browser (push) Successful in 8s
handy update / update-handy (push) Successful in 11s
automated update of helium appimage version and hash

## changelog
from `0.10.2.1` to `0.10.5.1`

upstream release: https://github.com/imputnet/helium-linux/releases/tag/0.10.5.1

Co-authored-by: gitea actions <actions@localhost>
Reviewed-on: #13
2026-03-16 19:09:31 +00:00
thomas 12a851aa57 try and fix cedilla 2026-03-16 12:33:28 +00:00
thomas f2e785fa8f improve mounting 2026-03-16 10:42:14 +00:00
thomas 1d1afe1a43 move smb automount secrets to agenix
helium update / update-helium (push) Successful in 10s
zen browser update / update-zen-browser (push) Successful in 5s
handy update / update-handy (push) Successful in 5s
2026-03-13 19:07:13 +00:00
thomas b1b3f324d9 add jjui 2026-03-13 17:45:54 +00:00
thomas 0656efb6aa keep release link and drop release notes in prs 2026-03-13 12:49:44 +00:00
thomas b41148f4a5 update helium to 0.10.2.1 (#12)
automated update of helium appimage version and hash

## changelog
from `0.9.4.1` to `0.10.2.1`

upstream release: https://github.com/imputnet/helium-linux/releases/tag/0.10.2.1

Changes since last build:

### helium-linux

```
9dcfae5 update: helium 0.10.2.1 (#215)
```

Co-authored-by: gitea actions <actions@localhost>
Reviewed-on: #12
2026-03-13 12:47:57 +00:00
thomas e16829f19a update zen browser to 1.19.2b (#11)
automated update of zen browser appimage version and hash

## changelog
from `1.19.2a` to `1.19.2b`

upstream release: https://github.com/zen-browser/desktop/releases/tag/1.19.2b

# Zen Stable Release

## Security

[Various security fixes](https://www.mozilla.org/en-US/security/advisories/mfsa2026-19/)

## New Features

- Updated to Firefox 148.0.2

## Fixes

- Fixed some RSS live folders not working with certain feeds. ([#12685](https://github.com/zen-browser/desktop/issues/12685))

- Improved performance for spaces, specially when switching between them. ([#11851](https://github.com/zen-browser/desktop/issues/11851))

- Other minor bug fixes and improvements.

Co-authored-by: gitea actions <actions@localhost>
Reviewed-on: https://gitea.unrail.xyz/thomas/nixos-config/pulls/11
2026-03-13 12:47:17 +00:00
16 changed files with 228 additions and 204 deletions
+4 -175
View File
@@ -4,7 +4,6 @@ set -euo pipefail
: "${FILE:?FILE is required}"
: "${LATEST_RELEASE_URL:?LATEST_RELEASE_URL is required}"
: "${DOWNLOAD_URL_TEMPLATE:?DOWNLOAD_URL_TEMPLATE is required}"
: "${RELEASE_API_REPO:?RELEASE_API_REPO is required}"
if command -v python >/dev/null 2>&1; then
PYTHON_BIN=python
@@ -60,184 +59,14 @@ s=re.sub(r'hash\s*=\s*"[^"]+"', f'hash = "{os.environ["NEW_HASH"]}"', s, count=1
open(p,"w").write(s)
PY
echo "updated=true" >> "$GITHUB_OUTPUT"
echo "version=$latest_version" >> "$GITHUB_OUTPUT"
echo "previous_version=$current_version" >> "$GITHUB_OUTPUT"
release_tag="${release_tag_template//\{version\}/$latest_version}"
release_tag="${release_tag#\{}"
release_tag="${release_tag%\}}"
release_tag="${release_tag#\'}"
release_tag="${release_tag%\'}"
release_url="${LATEST_RELEASE_URL%/latest}/tag/${release_tag}"
release_html=$(curl -fsSL "$release_url" || true)
release_notes=""
if [ -n "$release_html" ]; then
release_notes=$(printf '%s' "$release_html" | "$PYTHON_BIN" -c '
import re
import sys
from html.parser import HTMLParser
html = sys.stdin.read()
m = re.search(r"<div[^>]*data-test-selector=\"body-content\"[^>]*class=\"[^\"]*markdown-body[^\"]*\"[^>]*>(.*?)</div>", html, re.S)
if not m:
print("")
raise SystemExit(0)
fragment = m.group(1)
class MdExtractor(HTMLParser):
def __init__(self):
super().__init__()
self.out = []
self.list_depth = 0
self.in_pre = False
self.in_code_inline = False
self.link_stack = []
def _append(self, text):
self.out.append(text)
def _ensure_newline(self):
if not self.out:
return
if not self.out[-1].endswith("\n"):
self.out.append("\n")
def _ensure_blank_line(self):
if not self.out:
return
joined = "".join(self.out)
if joined.endswith("\n\n"):
return
if joined.endswith("\n"):
self.out.append("\n")
else:
self.out.append("\n\n")
def handle_starttag(self, tag, attrs):
attrs_d = dict(attrs)
if tag in ("h1", "h2", "h3", "h4", "h5", "h6"):
self._ensure_blank_line()
level = int(tag[1])
self._append("#" * level + " ")
return
if tag in ("p", "div"):
self._ensure_blank_line()
return
if tag in ("ul", "ol"):
self._ensure_blank_line()
self.list_depth += 1
return
if tag == "li":
self._ensure_newline()
indent = " " * max(self.list_depth - 1, 0)
self._append(f"{indent}- ")
return
if tag == "br":
self._append("\n")
return
if tag == "pre":
self._ensure_blank_line()
self._append("```\n")
self.in_pre = True
return
if tag == "code":
if not self.in_pre:
self._append("`")
self.in_code_inline = True
return
if tag == "a":
href = attrs_d.get("href", "")
self.link_stack.append(href)
self._append("[")
return
if tag in ("strong", "b"):
self._append("**")
return
if tag in ("em", "i"):
self._append("*")
return
def handle_endtag(self, tag):
if tag in ("h1", "h2", "h3", "h4", "h5", "h6", "p", "div"):
self._ensure_blank_line()
return
if tag in ("ul", "ol"):
self.list_depth = max(self.list_depth - 1, 0)
self._ensure_blank_line()
return
if tag == "li":
self._ensure_newline()
return
if tag == "pre":
self._ensure_newline()
self._append("```\n\n")
self.in_pre = False
return
if tag == "code":
if not self.in_pre and self.in_code_inline:
self._append("`")
self.in_code_inline = False
return
if tag == "a":
href = self.link_stack.pop() if self.link_stack else ""
if href:
self._append("]("
+ href
+ ")")
else:
self._append("]")
return
if tag in ("strong", "b"):
self._append("**")
return
if tag in ("em", "i"):
self._append("*")
return
def handle_data(self, data):
if data:
self._append(data)
parser = MdExtractor()
parser.feed(fragment)
text = "".join(parser.out)
text = re.sub(r"\n{3,}", "\n\n", text)
text = re.sub(r"[ \t]+\n", "\n", text)
print(text.strip())
' || true)
else
echo "warning: failed to fetch release page ${release_url}"
fi
if [ -z "$release_notes" ]; then
release_notes="_No changelog found on upstream release page. Check ${release_url}._"
fi
delimiter="CHANGELOG_$(date +%s%N)"
{
echo "changelog<<${delimiter}"
printf '%s\n' "$release_notes"
echo "${delimiter}"
} >> "$GITHUB_OUTPUT"
echo "updated=true" >> "$GITHUB_OUTPUT"
echo "version=$latest_version" >> "$GITHUB_OUTPUT"
echo "previous_version=$current_version" >> "$GITHUB_OUTPUT"
echo "release_url=$release_url" >> "$GITHUB_OUTPUT"
+1 -6
View File
@@ -25,9 +25,7 @@ jobs:
FILE: modules/pkgs/handy.nix
LATEST_RELEASE_URL: https://github.com/cjpais/Handy/releases/latest
DOWNLOAD_URL_TEMPLATE: https://github.com/cjpais/Handy/releases/download/v{version}/Handy_{version}_amd64.AppImage
RELEASE_API_REPO: cjpais/Handy
RELEASE_TAG_TEMPLATE: v{version}
GITHUB_TOKEN: ${{ secrets.github_token || secrets.GITHUB_TOKEN }}
shell: bash
run: bash .gitea/scripts/update-appimage-nix.sh
@@ -47,14 +45,13 @@ jobs:
if: steps.update.outputs.updated == 'true'
env:
GITEA_TOKEN: ${{ secrets.tea_token || secrets.TEA_TOKEN }}
CHANGELOG: ${{ steps.update.outputs.changelog }}
shell: bash
run: |
set -euo pipefail
version="${{ steps.update.outputs.version }}"
previous_version="${{ steps.update.outputs.previous_version }}"
release_url="https://github.com/cjpais/Handy/releases/tag/v${version}"
release_url="${{ steps.update.outputs.release_url }}"
pr_body=$(cat <<EOF
automated update of handy appimage version and hash
@@ -63,8 +60,6 @@ jobs:
from \`${previous_version}\` to \`${version}\`
upstream release: ${release_url}
${CHANGELOG}
EOF
)
+1 -6
View File
@@ -25,9 +25,7 @@ jobs:
FILE: modules/pkgs/helium.nix
LATEST_RELEASE_URL: https://github.com/imputnet/helium-linux/releases/latest
DOWNLOAD_URL_TEMPLATE: https://github.com/imputnet/helium-linux/releases/download/{version}/helium-{version}-x86_64.AppImage
RELEASE_API_REPO: imputnet/helium-linux
RELEASE_TAG_TEMPLATE: '{version}'
GITHUB_TOKEN: ${{ secrets.github_token || secrets.GITHUB_TOKEN }}
shell: bash
run: bash .gitea/scripts/update-appimage-nix.sh
@@ -47,14 +45,13 @@ jobs:
if: steps.update.outputs.updated == 'true'
env:
GITEA_TOKEN: ${{ secrets.tea_token || secrets.TEA_TOKEN }}
CHANGELOG: ${{ steps.update.outputs.changelog }}
shell: bash
run: |
set -euo pipefail
version="${{ steps.update.outputs.version }}"
previous_version="${{ steps.update.outputs.previous_version }}"
release_url="https://github.com/imputnet/helium-linux/releases/tag/${version}"
release_url="${{ steps.update.outputs.release_url }}"
pr_body=$(cat <<EOF
automated update of helium appimage version and hash
@@ -63,8 +60,6 @@ jobs:
from \`${previous_version}\` to \`${version}\`
upstream release: ${release_url}
${CHANGELOG}
EOF
)
+1 -6
View File
@@ -25,9 +25,7 @@ jobs:
FILE: modules/pkgs/zen-browser.nix
LATEST_RELEASE_URL: https://github.com/zen-browser/desktop/releases/latest
DOWNLOAD_URL_TEMPLATE: https://github.com/zen-browser/desktop/releases/download/{version}/zen-x86_64.AppImage
RELEASE_API_REPO: zen-browser/desktop
RELEASE_TAG_TEMPLATE: '{version}'
GITHUB_TOKEN: ${{ secrets.github_token || secrets.GITHUB_TOKEN }}
shell: bash
run: bash .gitea/scripts/update-appimage-nix.sh
@@ -47,14 +45,13 @@ jobs:
if: steps.update.outputs.updated == 'true'
env:
GITEA_TOKEN: ${{ secrets.tea_token || secrets.TEA_TOKEN }}
CHANGELOG: ${{ steps.update.outputs.changelog }}
shell: bash
run: |
set -euo pipefail
version="${{ steps.update.outputs.version }}"
previous_version="${{ steps.update.outputs.previous_version }}"
release_url="https://github.com/zen-browser/desktop/releases/tag/${version}"
release_url="${{ steps.update.outputs.release_url }}"
pr_body=$(cat <<EOF
automated update of zen browser appimage version and hash
@@ -63,8 +60,6 @@ jobs:
from \`${previous_version}\` to \`${version}\`
upstream release: ${release_url}
${CHANGELOG}
EOF
)
+33
View File
@@ -20,3 +20,36 @@ NixOS configuration using a dendritic structure — `flake.nix` at the root, wit
```bash
sudo nixos-rebuild switch --flake .#nixos
```
## SMB share secrets (agenix)
SMB automount is configured in `modules/hosts/nixos.nix` and activates once
`secrets/smb-credentials.age` exists.
1. Edit recipients in `secrets/secrets.nix` if needed.
2. Create the encrypted secret (using the host SSH private key via sudo):
```bash
sudo env RULES=secrets/secrets.nix nix run github:ryantm/agenix -- -e secrets/smb-credentials.age -i /etc/ssh/ssh_host_ed25519_key
```
Use this content:
```text
username=YOUR_SMB_USER
password=YOUR_SMB_PASSWORD
# optional
# domain=WORKGROUP
```
Configured shares mirror your Endeavour setup:
- `//192.168.1.102/data``/mnt/unraid-data`
- `//192.168.1.102/appdata``/mnt/unraid-appdata`
Then apply:
```bash
sudo nixos-rebuild switch --flake .#nixos
```
Generated
+97 -1
View File
@@ -1,5 +1,48 @@
{
"nodes": {
"agenix": {
"inputs": {
"darwin": "darwin",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"systems": "systems"
},
"locked": {
"lastModified": 1770165109,
"narHash": "sha256-9VnK6Oqai65puVJ4WYtCTvlJeXxMzAp/69HhQuTdl/I=",
"owner": "ryantm",
"repo": "agenix",
"rev": "b027ee29d959fda4b60b57566d64c98a202e0feb",
"type": "github"
},
"original": {
"owner": "ryantm",
"repo": "agenix",
"type": "github"
}
},
"darwin": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1744478979,
"narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "43975d782b418ebf4969e9ccba82466728c2851b",
"type": "github"
},
"original": {
"owner": "lnl7",
"ref": "master",
"repo": "nix-darwin",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@@ -20,6 +63,27 @@
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"agenix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1745494811,
"narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"import-tree": {
"locked": {
"lastModified": 1772999353,
@@ -36,6 +100,22 @@
}
},
"nixpkgs": {
"locked": {
"lastModified": 1754028485,
"narHash": "sha256-IiiXB3BDTi6UqzAZcf2S797hWEPCRZOwyNThJIYhUfk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "59e69648d345d6e8fef86158c555730fa12af9de",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1772773019,
"narHash": "sha256-E1bxHxNKfDoQUuvriG71+f+s/NT0qWkImXsYZNFFfCs=",
@@ -53,9 +133,25 @@
},
"root": {
"inputs": {
"agenix": "agenix",
"flake-parts": "flake-parts",
"import-tree": "import-tree",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs_2"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
+1
View File
@@ -9,6 +9,7 @@
};
import-tree.url = "github:vic/import-tree";
agenix.url = "github:ryantm/agenix";
};
outputs =
+1
View File
@@ -12,6 +12,7 @@
lazygit
pnpm
ni
code-cursor-fhs
# LSPs and formatters (previously via Mason)
stylua
+68 -4
View File
@@ -3,9 +3,20 @@
self,
config,
...
}: {
flake.nixosModules.nixos-host = {pkgs, ...}: {
}: let
flakeConfig = config;
in {
flake.nixosModules.nixos-host = {
pkgs,
lib,
config,
...
}: let
smbSecretFile = ../../secrets/smb-credentials.age;
hasSmbSecret = builtins.pathExists smbSecretFile;
in {
imports = [
inputs.agenix.nixosModules.default
../../hardware-configuration.nix
];
@@ -19,7 +30,7 @@
# Custom EDID override for Samsung 240Hz on DP-1
boot.kernelParams = ["drm.edid_firmware=DP-1:edid/g80.bin"];
hardware.firmware = [
(pkgs.runCommandNoCC "g80-edid-firmware" {} ''
(pkgs.runCommand "g80-edid-firmware" {} ''
install -Dm444 ${../assets/edid/g80.bin} $out/lib/firmware/edid/g80.bin
'')
];
@@ -69,7 +80,7 @@
};
# User account
users.users.${config.username} = {
users.users.${flakeConfig.username} = {
isNormalUser = true;
description = "Thomas Gouveia Lopes";
extraGroups = ["networkmanager" "wheel"];
@@ -91,6 +102,59 @@
# State version
system.stateVersion = "25.11";
boot.supportedFilesystems = ["cifs"];
warnings = lib.optional (!hasSmbSecret) ''
SMB automount is disabled: missing ${toString smbSecretFile}.
Create it with agenix:
sudo env RULES=secrets/secrets.nix nix run github:ryantm/agenix -- -e secrets/smb-credentials.age -i /etc/ssh/ssh_host_ed25519_key
and set:
username=...
password=...
# optional
# domain=WORKGROUP
'';
age.identityPaths = ["/etc/ssh/ssh_host_ed25519_key"];
age.secrets."smb-credentials" = lib.mkIf hasSmbSecret {
file = smbSecretFile;
mode = "0400";
owner = "root";
group = "root";
};
fileSystems."/mnt/unraid-data" = lib.mkIf hasSmbSecret {
device = "//192.168.1.102/data";
fsType = "cifs";
options = [
"credentials=${config.age.secrets."smb-credentials".path}"
"uid=1000"
"gid=1000"
"iocharset=utf8"
"nofail"
"x-systemd.automount"
"_netdev"
"noserverino"
"vers=3.0"
];
};
fileSystems."/mnt/unraid-appdata" = lib.mkIf hasSmbSecret {
device = "//192.168.1.102/appdata";
fsType = "cifs";
options = [
"credentials=${config.age.secrets."smb-credentials".path}"
"uid=1000"
"gid=1000"
"iocharset=utf8"
"nofail"
"x-systemd.automount"
"_netdev"
"noserverino"
"vers=3.0"
];
};
fileSystems."/mnt/endeavour" = {
device = "/dev/disk/by-uuid/a32ca052-12a5-4355-bd3b-b4515d9ea4a5";
fsType = "ext4";
+2
View File
@@ -24,6 +24,8 @@
ffmpeg
tmux
obs-studio
jjui
bat
];
};
}
+2 -2
View File
@@ -2,11 +2,11 @@
perSystem = {pkgs, ...}: {
packages.handy = pkgs.appimageTools.wrapType2 rec {
pname = "handy";
version = "0.7.10";
version = "0.7.12";
src = pkgs.fetchurl {
url = "https://github.com/cjpais/Handy/releases/download/v${version}/Handy_${version}_amd64.AppImage";
hash = "sha256-vBOcXCCJr9D0u0h27nN4XLPPngx4m+toAfi6O6Fuojk=";
hash = "sha256-Qh82PvZErWWhARs7ZzoGFllQXKsF63GUGqG5taT+kV8=";
};
extraInstallCommands = let
+2 -2
View File
@@ -2,11 +2,11 @@
perSystem = { pkgs, ... }: {
packages.helium = pkgs.appimageTools.wrapType2 rec {
pname = "helium";
version = "0.9.4.1";
version = "0.10.6.1";
src = pkgs.fetchurl {
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
hash = "sha256-N5gdWuxOrIudJx/4nYo4/SKSxakpTFvL4zzByv6Cnug=";
hash = "sha256-6xqNRaP3aqitEseexRVEEjKkJClC0j1HHZoRGQanhSk=";
};
extraInstallCommands = let
+2 -2
View File
@@ -1,11 +1,11 @@
{lib, ...}: {
perSystem = {pkgs, ...}: let
pname = "zen-browser";
version = "1.19.2a";
version = "1.19.3b";
src = pkgs.fetchurl {
url = "https://github.com/zen-browser/desktop/releases/download/${version}/zen-x86_64.AppImage";
hash = "sha256-lDn7rIYDgmyUnc3PdIASXfpXBXASL6TEdzyZfT716cI=";
hash = "sha256-p00Irv2z6brDXMx3cr0234lOZZ2a7FmJMDzN494nzMw=";
};
appimageContents = pkgs.appimageTools.extract {inherit pname version src;};
+1
View File
@@ -2,6 +2,7 @@
flake.nixosModules.ui = { pkgs, lib, ... }: {
# Desktop environment
services.xserver.enable = true;
services.xserver.xkb.options = "compose:ralt,cedilla:cacute";
services.displayManager.gdm.enable = true;
services.displayManager.gdm.wayland = true;
services.desktopManager.gnome.enable = true;
+7
View File
@@ -0,0 +1,7 @@
let
nixos = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIg62Co6P+CYcvINrW9IYM1D8W7A3LNlEphAqP6vCzrv root@nixos";
in {
"secrets/smb-credentials.age".publicKeys = [
nixos
];
}
+5
View File
@@ -0,0 +1,5 @@
age-encryption.org/v1
-> ssh-ed25519 eoxNoQ +//j26EmOrSLqTMUaKWy4X/GZZ3XoJmKlT+ArQejODU
olSV7FU5URhIcB4JczmPhGZsaQjQCs7kTm/IISCePsk
--- r7Gpe55fXHr9lghoFvwAZZVvDVckENBxTDXW3sXEjUI
ã{„Â&ffÇj?ÛSŠÈy´|Ô™tÀܾ_3äûOÇÒåjp» ‹tS!Î,†!5iÿó©¡ÙGoê‹_?tFKˆÊ´ØÔh%up„ÁX;'•.ÿXÙðóœo=