Show newer

Here is the derivation to anyone interested: github.com/tcheneau/mynixpkgs/
Strace, ltrace and LD_DEBUG environment variable were my friends!

Show thread

So, I wanted to open a Zed encrypt (secure) archive, but Zed encrypt was not packaged in Nixpkgs (and thus available on NixOS). I could have used a virtual machine to install the provided Debian package, but it would have been over in 30 minutes. Instead, I decided to write a derivation: library path overwrite, library preload, C code for overloading syscalls and change hardcoded path, wrapper scripts: in short, it just works! It took about ~9 hours of work. Totally worth it.

As many of you know I like to keep my worlds separate. I don't like bringing my work life, home or political life together. Which I have to thank the people on LR for keeping the local timeline mostly free from politics. We never stopped any decision or even had the need too. With that said I needed a place to vent about politics so I setup another instance dedicated for just that. If anyone would like to join your more than welcome. The instance is tavern.today

Sadly, it was not packaged on NixOS, so the next natural step was to write a derivation for it (NixOS name for a package). After a while, I found that I wasn't doing it in the right way but I still wanted to do it my way (added an extra couple hours). Finally, I got a working derivation and could finally start the docker-compose YAML file with podman-compose: I now have AWX running and don't know what to do next! So, quick question: am I the only one to always go for shortcuts like that? (2/2)

So it all started because I watched a video from Jeff Geerling about Ansible/AWX (youtube.com/watch?v=iKmY4jEiy_). It made me want to test AWX. First step: I started investigating the docker-compose setup he talked about in his video. Then I remembered that I wanted to use podman instead of docker (because it's supposed to be a drop-in replacement!). So I looked for a tool for that and stumbled upon podman-compose (github.com/containers/podman-c). (1/2)

Quite obviously, on NixOS, it's just one line of config to enable it:

services.autorandr.enable = true;

and "nixos-rebuild switch" away!

Show thread

I just found out about autorandr and it completely made my day: you can save screen profiles that are automatically loaded when there is a screen connected/disconnected (and it can even call scripts on changes).

Happy New Year (and thank you all for welcoming me earlier today!).

First toot: hello everyone on linuxrocks ! Thank you in advance for the warm welcome. 😉
(Tooting from NixOS, because, what else ?)

LinuxRocks.Online

Linux geeks doing what Linux geeks do...