~fgaz

Italy / Sweden

https://fgaz.me/about

Haskell | NixOS

Trackers

~fgaz/wasp-os-web-builder

Last active 12 days ago

~fgaz/get-tested4nix

Last active a month ago

~fgaz/haskell-gemini

Last active 4 months ago

~fgaz/nix-search-matrix-bot

Last active 4 months ago

~fgaz/nixpkgs-error-guided-refactor

Last active 7 months ago

~fgaz/tcl-stdenv

Last active 7 months ago

~fgaz/orchid

Last active 7 months ago

~fgaz/nix-minetest-fetcher

Last active 9 months ago

~fgaz/nixos-star64

Last active 1 year, 1 month ago

~fgaz/minetest-lls-definitions

Last active 1 year, 3 months ago
View more

#11 "42 internal server error" when attempting to post 4 months ago

Comment by ~fgaz on ~fgaz/haskell-gemini

Thanks for reporting the issue. Looks like the database was owned by the wrong uid. I just fixed it and prevented it from happening again.

REPORTED RESOLVED FIXED

#1 Generate HTML properly 4 months ago

Comment by ~fgaz on ~fgaz/nix-search-matrix-bot

Francesco Gazzetta referenced this ticket in commit c63d71d.

REPORTED RESOLVED IMPLEMENTED

#2 Configuration file 4 months ago

Ticket created by ~fgaz on ~fgaz/nix-search-matrix-bot

Make hardcoded stuff like the elasticsearch instance and welcome message configurable.

#1 Generate HTML properly 4 months ago

Ticket created by ~fgaz on ~fgaz/nix-search-matrix-bot

That is, with a library like html5ever

#5 Remember pinned paths 7 months ago

Ticket created by ~fgaz on ~fgaz/orchid

In a trie of directories. Each node can store the last scan time. Candidate library: pattern-trie

#1 Bad nix-collect-garbage performance on many links 7 months ago

Comment by ~fgaz on ~fgaz/orchid

Using the filesystem as a database was a bad idea in general. Fixed in 3aea6d0b40b1660ea4034682b511c3f3bf4c6a95, now I use json. Might switch to sqlite later.

REPORTED RESOLVED FIXED

#1 Stack Allocation Support 1 year, 9 months ago

Comment by ~fgaz on ~fgaz/qbe-hs

Looks like I missed it. Patches welcome!

#2 doesn't work with element-desktop 2 years ago

Comment by ~fgaz on ~fgaz/nix-bubblewrap

In flatpak it's actually possible to give restricted access to dbus (see --talk-name here). I wonder if/how that can be done with only bubblewrap. I don't see similar flags in its --help.

#2 doesn't work with element-desktop 2 years ago

Comment by ~fgaz on ~fgaz/nix-bubblewrap

Looks like it needs dbus access. Try passing through $DBUS_SESSION_BUS_ADDRESS and adding a ro-bind for the path present in that variable.

By the way, the arch wiki is a great resource for fixing these type of errors: https://wiki.archlinux.org/title/Bubblewrap

#2 doesn't work with element-desktop 2 years ago

Comment by ~fgaz on ~fgaz/nix-bubblewrap

By default nix-bubblewrap is very restrictive: it just gives access to the package closure, but most packages need more. The error you encountered is fixed by passing -gpu to nix-bwrap, but for element desktop to work properly you'll need to also pass -net, -x11 (I didn't test it on wayland yet, patches welcome), and -pulse or -alsa, and probably more if you also want the webcam to work (again, patches welcome).

You probably also want to add something like

-bwrap-options "--bind $HOME/.config/Element $HOME/.config/Element"

if you want your data to persist across sessions.