Last active
November 28, 2018 06:48
-
-
Save jhburns/cc1fcd9bc0f4aeb1a2bb1c114ab66949 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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