m 1 pornocauster: ignore lidswitch, configure additional sink for pulse

This commit is contained in:
makefu 2015-10-14 00:10:56 +02:00
parent cb4d37d3ee
commit f73fe104d8

View File

@ -43,6 +43,12 @@
krebs.build.target = "root@pornocauster"; 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 = [ networking.firewall.allowedTCPPorts = [
25 25
]; ];