summaryrefslogtreecommitdiffstats
path: root/makefu
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 /makefu
parentcb4d37d3eedef974bc16e68c601c479a2ed503d9 (diff)
m 1 pornocauster: ignore lidswitch, configure additional sink for pulse
Diffstat (limited to 'makefu')
-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 d208e511..8f7f5ea7 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
];