summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/pnp
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-07-15 18:57:16 +0200
committermakefu <github@syntax-fehler.de>2017-07-15 18:57:16 +0200
commitfa38155eec9563dc9dc620a77900d87b97443cfe (patch)
tree6000436cba63e03a21556fb6c2d6ebb67eb5b3b0 /makefu/1systems/pnp
parent3698f2a40c2db7df0888974c9b2e347947088a98 (diff)
ma: move systems to subdir, init source
Diffstat (limited to 'makefu/1systems/pnp')
-rw-r--r--makefu/1systems/pnp/config.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/makefu/1systems/pnp/config.nix b/makefu/1systems/pnp/config.nix
new file mode 100644
index 000000000..971676b79
--- /dev/null
+++ b/makefu/1systems/pnp/config.nix
@@ -0,0 +1,50 @@
+# 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 =
+ [
+ ../.
+ ../2configs/headless.nix
+ ../../krebs/3modules/Reaktor.nix
+
+ # 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
+
+ ../2configs/tinc/retiolum.nix
+
+ # config.system.build.vm
+ (toString <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>)
+ ];
+
+ 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.debug = {
+ debug = true;
+ extraEnviron = {
+ REAKTOR_HOST = "ni.r";
+ };
+ plugins = with pkgs.ReaktorPlugins; [ stockholm-issue nixos-version sed-plugin ];
+ channels = [ "#retiolum" ];
+ };
+
+ krebs.build.host = config.krebs.hosts.pnp;
+
+ networking.firewall.allowedTCPPorts = [
+ 25
+ ];
+
+}