stockholm/makefu/1systems/pnp.nix

52 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
[
2015-08-07 10:53:02 +00:00
../2configs/tinc-basic-retiolum.nix
2015-10-28 14:05:15 +00:00
../2configs/headless.nix
2016-01-07 16:34:56 +00:00
../../krebs/3modules/Reaktor.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>
../2configs/fs/vm-single-partition.nix
2016-01-07 16:34:56 +00:00
# config.system.build.vm
<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";
options = "trans=virtio,version=9p2000.L,cache=loose";
neededForBoot = true;
};
};
krebs.Reaktor = {
enable = true;
debug = true;
extraEnviron = {
REAKTOR_HOST = "cd.retiolum";
};
plugins = with pkgs.ReaktorPlugins; [ stockholm-issue nixos-version sed-plugin ];
channels = [ "#retiolum" ];
};
2015-07-26 16:18:41 +00:00
krebs.build.host = config.krebs.hosts.pnp;
nixpkgs.config.packageOverrides = pkgs: { tinc = pkgs.tinc_pre; };
2015-08-31 12:25:27 +00:00
2015-08-05 12:56:38 +00:00
networking.firewall.allowedTCPPorts = [
2015-08-17 21:22:49 +00:00
25
2015-08-07 10:53:02 +00:00
];
2015-08-17 21:22:49 +00:00
}