From f73fe104d84b2f0d2fc3b4f0342c36735b3fb220 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 14 Oct 2015 00:10:56 +0200 Subject: m 1 pornocauster: ignore lidswitch, configure additional sink for pulse --- makefu/1systems/pornocauster.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'makefu') 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 ]; -- cgit v1.2.3