summaryrefslogtreecommitdiff
path: root/profiles/workshop.nix
blob: 311aeab03cacf0e9b0c0b1fb5c9f25d117132f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# lithium server
{ pkgs, lib, ... }:

{
  imports = [
    ../lib/linux.nix
    ../lib/ssh.nix
    ../lib/packages.nix
    ../lib/emacs.nix
  ];

  home = {
    sessionVariables = {
      GPGID = "C184FB3920E3510D";
    };
    packages = with pkgs; [
      weechat
    ];
  };

  services.polybar.config."bar/top".monitor = lib.mkForce "HDMI-1";

  services.random-background.enable = lib.mkForce true;

  programs.git.signing.signByDefault = true;

  systemd.user.services = {
    "shop-music".Service = {
      RestartSec = "3s";
      Restart = "always";
      ExecStart = "${pkgs.mplayer}/bin/mplayer http://localhost:8097";
    };
  };

  services.mpd = {
    enable = true;
    musicDirectory = "/mnt/campbell/ben/music";
    network = {
      listenAddress = "0.0.0.0";
      port = 6600;
    };
    extraConfig = ''
      audio_output {
        type "httpd"
        name "HTTP Stream"
        encoder "vorbis"
        port "8097"
        quality "7.0"
        format "44100:16:2"
      }
    '';
  };


}