2015-08-02 21:12:38 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2015-08-07 10:10:02 +00:00
|
|
|
##
|
|
|
|
# of course this name is a lie - it prepares a GUI environment close to my
|
|
|
|
# current configuration.
|
|
|
|
#
|
|
|
|
# autologin with mainUser into awesome
|
|
|
|
##
|
|
|
|
#
|
2015-08-02 21:12:38 +00:00
|
|
|
with lib;
|
2015-08-07 10:10:02 +00:00
|
|
|
let
|
|
|
|
mainUser = config.krebs.build.user.name;
|
|
|
|
in
|
2015-08-02 21:12:38 +00:00
|
|
|
{
|
|
|
|
imports = [ ];
|
2015-08-05 13:11:52 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "us";
|
2015-08-07 10:53:38 +00:00
|
|
|
xkbVariant = "altgr-intl";
|
|
|
|
xkbOptions = "ctrl:nocaps";
|
2015-08-02 21:12:38 +00:00
|
|
|
|
2015-08-05 13:11:52 +00:00
|
|
|
windowManager = {
|
|
|
|
awesome.enable = true;
|
|
|
|
awesome.luaModules = [ pkgs.luaPackages.vicious ];
|
|
|
|
default = "awesome";
|
|
|
|
};
|
|
|
|
|
2015-08-07 10:10:02 +00:00
|
|
|
displayManager.auto.enable = true;
|
|
|
|
displayManager.auto.user = mainUser;
|
2015-08-05 13:11:52 +00:00
|
|
|
desktopManager.xterm.enable = false;
|
|
|
|
};
|
2015-08-02 21:12:38 +00:00
|
|
|
|
2015-08-09 12:53:24 +00:00
|
|
|
## FONTS
|
|
|
|
# TODO: somewhere else?
|
|
|
|
|
|
|
|
i18n.consoleFont = "Lat2-Terminus16";
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableCoreFonts = true;
|
|
|
|
enableFontDir = true;
|
|
|
|
enableGhostscriptFonts = false;
|
|
|
|
fonts = [ pkgs.terminus_font ];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs;[
|
|
|
|
xlockmore
|
|
|
|
rxvt_unicode-with-plugins
|
|
|
|
vlc
|
|
|
|
firefox
|
|
|
|
chromium
|
2015-08-07 10:10:02 +00:00
|
|
|
];
|
2015-08-10 17:49:55 +00:00
|
|
|
# TODO: use mainUser
|
|
|
|
users.extraUsers.makefu.extraGroups = [ "audio" ];
|
2015-08-02 21:12:38 +00:00
|
|
|
hardware.pulseaudio = {
|
|
|
|
enable = true;
|
2015-08-10 17:49:55 +00:00
|
|
|
# systemWide = true;
|
2015-08-02 21:12:38 +00:00
|
|
|
};
|
|
|
|
}
|