stockholm/makefu/2configs/base-gui.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

{ 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,specifically:
2015-08-07 10:10:02 +00:00
#
# * autologin with mainUser into awesome
# * audio
# * terminus font
2015-08-07 10:10:02 +00:00
#
# if this is not enough, check out main-laptop.nix
with lib;
2015-08-07 10:10:02 +00:00
let
mainUser = config.krebs.build.user.name;
2015-10-09 10:35:26 +00:00
awesomecfg = pkgs.awesomecfg.full;
2015-08-07 10:10:02 +00:00
in
{
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-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;
};
nixpkgs.config.packageOverrides = pkgs: rec {
awesome = pkgs.stdenv.lib.overrideDerivation pkgs.awesome (oldAttrs : {
postInstall = ''
2015-10-09 10:35:26 +00:00
cp ${awesomecfg} $out/etc/xdg/awesome/rc.lua
'';
});
};
i18n.consoleFont = "Lat2-Terminus16";
fonts = {
enableCoreFonts = true;
enableFontDir = true;
enableGhostscriptFonts = false;
fonts = [ pkgs.terminus_font ];
};
environment.systemPackages = with pkgs;[
xlockmore
rxvt_unicode-with-plugins
firefox
2015-08-07 10:10:02 +00:00
];
users.extraUsers.${mainUser}.extraGroups = [ "audio" ];
hardware.pulseaudio = {
enable = true;
# systemWide = true;
};
}