Merge branch 'main' into bot/handy-0.7.10

This commit is contained in:
2026-03-11 16:36:22 +00:00
4 changed files with 40 additions and 16 deletions
+2
View File
@@ -2,6 +2,7 @@
flake.nixosModules.development = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
nodejs_24
go
nixfmt
zellij
@@ -17,6 +18,7 @@
vscode-langservers-extracted # includes css-lsp, eslint-lsp, html-lsp, json-lsp
tailwindcss-language-server
biome
typescript-go
# Treesitter CLI + C compiler for building grammars
tree-sitter
+8
View File
@@ -48,6 +48,14 @@ flake.nixosModules.nixos-host = {pkgs, ...}: {
pulse.enable = true;
};
# SSH
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
};
};
# User account
users.users.${config.username} = {
isNormalUser = true;
+2
View File
@@ -20,6 +20,8 @@
feishin
obsidian
self.packages.${pkgs.stdenv.hostPlatform.system}.handy
mpv
ffmpeg
];
};
}
+22 -10
View File
@@ -1,6 +1,5 @@
{ ... }: {
perSystem = { pkgs, ... }: {
packages.zen-browser = pkgs.appimageTools.wrapType2 rec {
{ lib, ... }: {
perSystem = { pkgs, ... }: let
pname = "zen-browser";
version = "1.19.1b";
@@ -9,21 +8,34 @@
hash = "sha256-h3lza2C+SxptpcX897Uf/nM8dNILUBXScSNQZlvSIQg=";
};
extraInstallCommands = let
contents = pkgs.appimageTools.extract { inherit pname version src; };
in ''
desktop_file=$(find ${contents} -name "*.desktop" | head -n1)
appimageContents = pkgs.appimageTools.extract { inherit pname version src; };
in {
packages.zen-browser = pkgs.appimageTools.wrapType2 {
inherit pname version src;
extraPkgs = pkgs: [ pkgs.ffmpeg-full ];
extraInstallCommands = ''
desktop_file=$(find ${appimageContents} -name "*.desktop" | head -n1)
if [ -n "$desktop_file" ]; then
install -m 444 -D "$desktop_file" "$out/share/applications/${pname}.desktop"
# The desktop file uses 'zen' as the binary name
substituteInPlace "$out/share/applications/${pname}.desktop" \
--replace 'Exec=zen' 'Exec=${pname}'
fi
if [ -d ${contents}/usr/share/icons ]; then
cp -r ${contents}/usr/share/icons $out/share
if [ -d ${appimageContents}/usr/share/icons ]; then
cp -r ${appimageContents}/usr/share/icons $out/share
fi
ln -s $out/bin/${pname} $out/bin/zen
'';
meta = {
description = "Experience tranquillity while browsing the web without people tracking you!";
homepage = "https://zen-browser.app";
license = lib.licenses.mpl20;
platforms = [ "x86_64-linux" ];
};
};
};
}