golb

Nix

Current channel

nix-channel --list

Delete package

nix-env --uninstall <package>

Update all

nix-channel --update
nix-env -u '*'

Clean store

nix-store --gc

Check installed packages

nix-env --query

Apparmor with nix

sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=1
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=1

# And if you want to disable it, run the following two commands:

sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces