summaryrefslogtreecommitdiff
path: root/profiles/workshop.nix
blob: 84b81041bae75f66f495f8633c11798f3cf34430 (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
56
57
58
59
# lithium server
{ pkgs, lib, ... }:

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

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

  services.polybar.config."bar/top".monitor = "HDMI-1";
  services.polybar.enable = true;
  services.polybar.script = "polybar top &";

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

  programs.git.signing.signByDefault = lib.mkForce false;

  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"
      }
    '';
  };

  services.mbsync.enable = true;
}