!dGrjXvKnCwVLevgmzo:matrix.org

Stockholm NixOS meetup group

50 Members
Monthly meetups in Stockholm, Sweden around Nix releated topics(nixos.org)14 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
3 Aug 2025
@lillecarl:matrix.orglillecarl

I learned how to do a really cursed thing today: edit /nix/store paths

sudo unshare --mount bash -c 'mount -your /nix to /nix'

My goal wasn't to edit storepaths but to hardlink to the store, which requires being on the same mount point (which /nix/store isn't because it's RO bind-mounted over itself)

21:15:57
@lillecarl:matrix.orglillecarl *

I learned how to do a really cursed thing today: edit /nix/store paths

sudo unshare --mount bash -c 'mount -your /nix to /nix && touch /nix/store/something-cursed'

My goal wasn't to edit storepaths but to hardlink to the store, which requires being on the same mount point (which /nix/store isn't because it's RO bind-mounted over itself)

21:16:28
@lillecarl:matrix.orglillecarl *

I learned how to do a really cursed thing today: edit /nix/store paths

sudo unshare --mount bash -c 'mount -your /nix to /nix && touch /nix/store/something-cursed'

My goal wasn't to edit storepaths but to hardlink to the store, which requires being on the same mount point (which /nix/store isn't because it's RO bind-mounted over itself)

unshare --mount creates your own mount namespace (ish) where you get a clone of what is already, but you can mount over things without disrupting any other processes.

21:17:59
4 Aug 2025
@markuskowa:matrix.orgmarkuskowaI hope everyone had a great summer. Let's start up the new meetup season on Wednesday the 27th at the Nordic light hotel. Give it a thumbs up if you are planning to join.20:13:26
8 Aug 2025
@0x4a6f:nixos.dev0x4A6F joined the room.07:07:10
11 Aug 2025
@alxplus:matrix.orgalxplus👍18:28:49
12 Aug 2025
@ahbk:matrix.orgI use NixOS btw
In reply to @lillecarl:matrix.org
https://github.com/water-sucks/optnix Haha sry i forgot to link the most essential thing! 😄

I was going to try this and saw that the maintainer (water-sucks) has integrated this tool along with other neat stuff in a unified nixos-cli. Its beta though and I got a strange error about mailserver.fqdn not being set, but apart from that it went fine and optnix is indeed very nice to use. Thanks for the tips 🤗

https://github.com/nix-community/nixos-cli

06:55:19
13 Aug 2025
@309avklarat:matrix.org@309avklarat:matrix.org left the room.21:36:06

Show newer messages


Back to Room ListRoom Version: 10