# My experience when switching to NixOS - Part 7

This part is about running (as far as I think) insecure applications on NixOS. How’d you do that? Well… my approach is docker!

So, docker. I learned from docker when it was introduced. I guess it was two years ago or something like that. I never used it, though. But today, I use it. And I use it on NixOS!

The first thing you have to do is to put

  virtualisation.docker.enable = true;


into your configuration.nix file. Of course, you also have to install it. This depends on where you want to use it, so put it either in your systemPackages configuration or install it in your user profile with nix-env -i docker or, if it works (I didn’t try) with nix-env -iA pkgs.docker to be a bit faster.

Be sure your user is in the "docker" group! This one is really important. I actually had a bit of an issue (well, “a bit” is well said, I couldn’t run anything… so I had a big issue) with docker because I forgot to put my user into this group.

After the last step, you have to logout and login again.

So, now you should be able to run docker containers! I found a blog post by Jessie Frazelle, where she explains how she runs, for example, lynx in a docker container. She also provides examples for how to run chrome in docker, including google talk plugin!

Other stuff she shows:

• skype
• spotify
• gparted (huh?)
• tor browser
• mutt