summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/base-gui.nix
blob: 056005f75f3b2e626603f7f9b8b74e88b1bf58d5 (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
{ config, lib, pkgs, ... }:

with lib;
{
  imports = [ ];
  services.xserver = {
    enable = true;
    layout = "us";

# use awesome, direct boot into
    displayManager.auto.enable = true;
# TODO: use config.krebs.users.makefu ... or not
    displayManager.auto.user = "makefu";

    windowManager = {
      awesome.enable = true;
      awesome.luaModules = [ pkgs.luaPackages.vicious ];
      default = "awesome";
    };

    desktopManager.xterm.enable = false;
    desktopManager.default = "none";
  };

  security.setuidPrograms = [ "slock" ];

# use pulseaudio
  environment.systemPackages = [ pkgs.slock ];
  hardware.pulseaudio = {
    enable = true;
    systemWide = true;
  };

}