Skip to content

Instantly share code, notes, and snippets.

@flrichar
Last active April 4, 2024 12:55
Show Gist options
  • Save flrichar/6d25c2ca1fb3b365873249e7a6dddcef to your computer and use it in GitHub Desktop.
Save flrichar/6d25c2ca1fb3b365873249e7a6dddcef to your computer and use it in GitHub Desktop.
Easy nix environment from nerdctl container

Nix packaging in Nerdctl container

Also set up as a task-function with different aliases, options. Sync necessary data to misc volume.

sudo nerdctl -a /run/containerd/containerd.sock -n moby run -e 'PS1=\u@\h:\w\$ ' -it -v /home/user/the-working-project-path/misc:/root/misc nixos/nix:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment