stockholm/makefu/1systems/pnp/config.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

2016-01-07 16:34:56 +00:00
# Usage:
# NIX_PATH=secrets=/home/makefu/secrets/wry:nixpkgs=/var/src/nixpkgs nix-build -A users.makefu.pnp.config.system.build.vm
# result/bin/run-pnp-vm -virtfs local,path=/home/makefu/secrets/pnp,security_model=none,mount_tag=secrets
{ config, pkgs, ... }:
{
imports =
2016-01-07 16:34:56 +00:00
[
<stockholm/makefu>
<stockholm/makefu/2configs/headless.nix>
2015-08-17 21:22:49 +00:00
2016-01-07 16:34:56 +00:00
# these will be overwritten by qemu-vm.nix but will be used if the system
# is directly deployed
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
<stockholm/makefu/2configs/fs/vm-single-partition.nix>
<stockholm/makefu/2configs/tinc/retiolum.nix>
2016-01-07 16:34:56 +00:00
# config.system.build.vm
(toString <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>)
];
2016-01-07 16:34:56 +00:00
virtualisation.graphics = false;
# also export secrets, see Usage above
fileSystems = pkgs.lib.mkVMOverride {
"${builtins.toString <secrets>}" =
{ device = "secrets";
fsType = "9p";
2017-07-30 17:05:30 +00:00
options = [ "trans=virtio" "version=9p2000.L" "cache=loose" ];
2016-01-07 16:34:56 +00:00
neededForBoot = true;
};
};
2017-01-21 20:57:59 +00:00
krebs.Reaktor.debug = {
2016-01-07 16:34:56 +00:00
debug = true;
extraEnviron = {
2017-10-01 12:01:19 +00:00
# TODO: remove hard-coded server
REAKTOR_HOST = "irc.r";
2016-01-07 16:34:56 +00:00
};
plugins = with pkgs.ReaktorPlugins; [ stockholm-issue nixos-version sed-plugin ];
2017-10-01 12:28:34 +00:00
channels = [ "#xxx" ];
};
2015-07-26 16:18:41 +00:00
krebs.build.host = config.krebs.hosts.pnp;
2015-08-05 12:56:38 +00:00
networking.firewall.allowedTCPPorts = [
2016-03-15 12:20:14 +00:00
25
2015-08-07 10:53:02 +00:00
];
2015-08-17 21:22:49 +00:00
}