about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-10-17T14·18+0200
committerVincent Ambo <tazjin@gmail.com>2017-10-17T14·18+0200
commit0e84a3827373842e28fa7831ad0a2d3f28bba6de (patch)
treec2d02adb7c7da443771729da7b795aab14a026fd
parented1b60b588061b326286eada0cbf15c458b345c1 (diff)
feat: Enable VirtualBox & Docker
-rw-r--r--configuration.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/configuration.nix b/configuration.nix
index c03dc06ebbe1..ca97e3d9039c 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -16,18 +16,23 @@
   # Use the systemd-boot EFI boot loader.
   boot.loader.systemd-boot.enable = true;
   boot.loader.efi.canTouchEfiVariables = true;
-
   hardware.pulseaudio.enable = true;
-
-  # Set your time zone.
   time.timeZone = "Europe/Oslo";
 
-  # Configure shell environment
+  # Configure shell environment:
   programs.fish.enable = true;
   programs.ssh.startAgent = true;
   services.emacs.enable = true;
   services.emacs.defaultEditor = true;
 
+  # Configure VirtualBox (needed for local NixOps testing):
+  virtualisation.virtualbox.host.enable = true;
+
+  # Configure Docker (with socket activation):
+  # Side note: ... virtualisation? ...
+  virtualisation.docker.enable = true;
+  virtualisation.docker.autoPrune.enable = true;
+
   # Configure other random applications:
   programs.java.enable = true;