Skip to content

Instantly share code, notes, and snippets.

@bobvanderlinden
Created October 2, 2017 20:05
Show Gist options
  • Select an option

  • Save bobvanderlinden/0c6914310f56a691cb12e00c8bca7059 to your computer and use it in GitHub Desktop.

Select an option

Save bobvanderlinden/0c6914310f56a691cb12e00c8bca7059 to your computer and use it in GitHub Desktop.
Gogs test configuration
{ config, pkgs, ... }:
{
virtualisation.graphics = false;
services.mingetty.autologinUser = "root";
boot.loader.grub.device = "/dev/sda";
networking.firewall.enable = false;
services.gogs = {
enable = true;
};
}
NIX_PATH=nixpkgs=$PWD NIXOS_CONFIG=$PWD/configuration.nix nixos-rebuild build-vm && ./result/bin/run-*-vm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment