Skip to content

Instantly share code, notes, and snippets.

@jhburns
Last active November 28, 2018 06:48
Show Gist options
  • Save jhburns/cc1fcd9bc0f4aeb1a2bb1c114ab66949 to your computer and use it in GitHub Desktop.
Save jhburns/cc1fcd9bc0f4aeb1a2bb1c114ab66949 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports = [ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
];
programs.fish.enable = true;
environment.systemPackages = [
pkgs.docker_compose
pkgs.git
];
virtualisation.docker.enable = true;
swapDevices = [{device="/var/swap/";size=2048;}];
systemd.services.cluster = {
path = [pkgs.bash pkgs.docker_compose];
serviceConfig = {
ExecStart = "${pkgs.bash}/bin/bash /home/demo/server/on_start.sh";
};
wantedBy = [ "default.target" ];
};
systemd.services.cluster.enable = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment