From f6e99a39ea87ed2fcdf2ecca5bba8e5f20271f3e Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 4 Jun 2015 14:12:51 +0200 Subject: [PATCH] euhadra config --- euhadra.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 euhadra.nix diff --git a/euhadra.nix b/euhadra.nix new file mode 100644 index 0000000..622b0e9 --- /dev/null +++ b/euhadra.nix @@ -0,0 +1,32 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./common.nix + ./uefi.nix + ]; + + boot.initrd.luks.devices = [ { name = "euhadra_crypt"; device = "/dev/disk/by-uuid/328a9ede-0958-490b-8e82-62b06b839e21"; preLVM = true; } ]; + + networking.hostName = "euhadra"; + networking.hostId = "ddb5f0fd"; + + services.mpd = { + enable = true; + musicDirectory = "/mnt/vaccaria/music"; + extraConfig = '' + audio_output { + type "alsa" + name "dac" + device "sysdefault:CARD=QAMP" + } + ''; + }; + networking.firewall.allowedTCPPorts = [ config.services.mpd.network.port ]; + + environment.systemPackages = with pkgs; [ mpc_cli ]; + + services.xserver.vaapiDrivers = [ pkgs.vaapiIntel ]; + +}