summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-10-14 00:10:56 +0200
committermakefu <github@syntax-fehler.de>2015-10-14 00:10:56 +0200
commitf73fe104d84b2f0d2fc3b4f0342c36735b3fb220 (patch)
tree26b982e7aee29b90e1a0bee56a90d63eb09f02fd
parentcb4d37d3eedef974bc16e68c601c479a2ed503d9 (diff)
m 1 pornocauster: ignore lidswitch, configure additional sink for pulse
-rw-r--r--makefu/1systems/pornocauster.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/makefu/1systems/pornocauster.nix b/makefu/1systems/pornocauster.nix
index d208e5112..8f7f5ea7c 100644
--- a/makefu/1systems/pornocauster.nix
+++ b/makefu/1systems/pornocauster.nix
@@ -42,7 +42,13 @@
krebs.build.user = config.krebs.users.makefu;
krebs.build.target = "root@pornocauster";
- environment.systemPackages = with pkgs;[ get];
+ environment.systemPackages = with pkgs;[ get ];
+
+ services.logind.extraConfig = "HandleLidSwitch=ignore";
+ # configure pulseAudio to provide a HDMI sink as well
+ hardware.pulseaudio.configFile = pkgs.writeText "pulse-default-pa" ''
+ ${builtins.readFile "${config.hardware.pulseaudio.package}/etc/pulse/default.pa"}
+ load-module module-alsa-sink device=hw:0,3 sink_properties=device.description="HDMIOutput" sink_name="HDMI"'';
networking.firewall.allowedTCPPorts = [
25
];