summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/base-gui.nix
blob: 7f329c6ced536d0fc10b74351f57df3b7a7e1c5e (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
{ config, lib, pkgs, ... }:
##
# of course this name is a lie - it prepares a GUI environment close to my
# current configuration.
#
# autologin with mainUser into awesome
##
#
with lib;
let
  mainUser = config.krebs.build.user.name;
in
{
  imports = [ ];
  services.xserver = {
    enable = true;
    layout = "us";

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

    displayManager.auto.enable = true;
    displayManager.auto.user = mainUser;
    desktopManager.xterm.enable = false;
  };

  security.setuidPrograms = [ "slock" ];

  environment.systemPackages = [
    pkgs.slock
    pkgs.rxvt_unicode-with-plugins
  ];

  hardware.pulseaudio = {
    enable = true;
    systemWide = true;
  };

}