2015-08-02 23:12:38 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2015-08-07 12:10:02 +02:00
|
|
|
##
|
2015-08-23 02:48:35 +02:00
|
|
|
# of course this name is a lie
|
|
|
|
# - it prepares a GUI environment close to my
|
|
|
|
# current configuration,specifically:
|
2015-08-07 12:10:02 +02:00
|
|
|
#
|
2015-08-23 02:48:35 +02:00
|
|
|
# * autologin with mainUser into awesome
|
|
|
|
# * audio
|
|
|
|
# * terminus font
|
2015-08-07 12:10:02 +02:00
|
|
|
#
|
2015-08-23 02:48:35 +02:00
|
|
|
# if this is not enough, check out main-laptop.nix
|
|
|
|
|
2015-12-03 20:37:04 +01:00
|
|
|
|
2015-08-07 12:10:02 +02:00
|
|
|
let
|
|
|
|
mainUser = config.krebs.build.user.name;
|
|
|
|
in
|
2015-08-02 23:12:38 +02:00
|
|
|
{
|
2017-04-17 13:11:32 +02:00
|
|
|
imports = [
|
|
|
|
./urxvtd.nix
|
|
|
|
];
|
|
|
|
|
2015-08-05 15:11:52 +02:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "us";
|
2015-08-07 12:53:38 +02:00
|
|
|
xkbVariant = "altgr-intl";
|
2017-05-24 16:53:57 +02:00
|
|
|
xkbOptions = "ctrl:nocaps, eurosign:e";
|
2015-08-02 23:12:38 +02:00
|
|
|
|
2015-08-05 15:11:52 +02:00
|
|
|
windowManager = {
|
|
|
|
awesome.enable = true;
|
2019-01-22 09:04:20 +01:00
|
|
|
awesome.noArgb = true;
|
2015-08-05 15:11:52 +02:00
|
|
|
awesome.luaModules = [ pkgs.luaPackages.vicious ];
|
2020-04-21 21:33:55 +02:00
|
|
|
};
|
2020-04-23 15:36:05 +02:00
|
|
|
displayManager.defaultSession = lib.mkDefault "none+awesome";
|
2020-11-18 23:52:00 +01:00
|
|
|
displayManager.autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = mainUser;
|
|
|
|
};
|
2015-08-05 15:11:52 +02:00
|
|
|
};
|
2019-09-25 14:54:33 +02:00
|
|
|
environment.systemPackages = [ pkgs.gnome3.defaultIconTheme ];
|
2016-02-11 17:06:50 +01:00
|
|
|
# lid switch is handled via button presses
|
2019-09-25 14:54:55 +02:00
|
|
|
services.logind.lidSwitch = lib.mkDefault "ignore";
|
2016-04-17 02:03:15 +02:00
|
|
|
makefu.awesome.enable = true;
|
2020-04-23 10:31:29 +02:00
|
|
|
console.font = "Lat2-Terminus16";
|
2015-08-09 14:53:24 +02:00
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableFontDir = true;
|
2017-03-24 13:02:26 +01:00
|
|
|
enableGhostscriptFonts = true;
|
2020-04-21 21:33:55 +02:00
|
|
|
fonts = [ pkgs.terminus_font pkgs.corefonts ];
|
2015-08-09 14:53:24 +02:00
|
|
|
};
|
|
|
|
|
2018-02-06 11:57:58 +01:00
|
|
|
users.users.${mainUser} = {
|
|
|
|
extraGroups = [ "audio" ];
|
|
|
|
packages = with pkgs;[
|
|
|
|
pavucontrol
|
|
|
|
xlockmore
|
|
|
|
rxvt_unicode-with-plugins
|
|
|
|
];
|
|
|
|
};
|
2015-08-23 02:48:35 +02:00
|
|
|
|
2015-08-02 23:12:38 +02:00
|
|
|
hardware.pulseaudio = {
|
2015-08-23 02:48:35 +02:00
|
|
|
enable = true;
|
2017-09-29 21:35:17 +02:00
|
|
|
# systemWide = true;
|
2015-08-02 23:12:38 +02:00
|
|
|
};
|
2015-12-16 11:40:18 +01:00
|
|
|
services.xserver.displayManager.sessionCommands = let
|
|
|
|
xdefaultsfile = pkgs.writeText "Xdefaults" ''
|
|
|
|
cat |derp <<EOF
|
|
|
|
XTerm*background: black
|
|
|
|
XTerm*foreground: white
|
2018-10-21 23:21:58 +02:00
|
|
|
XTerm*FaceName : xft:Terminus:pixelsize=12
|
2015-12-16 11:40:18 +01:00
|
|
|
|
|
|
|
URxvt*termName: rxvt
|
2016-04-03 21:43:02 +02:00
|
|
|
URxvt*saveLines: 10000
|
|
|
|
URxvt*loginShell: false
|
|
|
|
URxvt.scrollBar : false
|
2015-12-16 11:40:18 +01:00
|
|
|
URxvt*scrollBar_right: false
|
|
|
|
URxvt*borderLess: false
|
|
|
|
URxvt.foreground: white
|
|
|
|
URxvt.background: black
|
|
|
|
URxvt.urgentOnBell: true
|
|
|
|
URxvt.visualBell: false
|
2018-10-21 23:21:58 +02:00
|
|
|
URxvt.font : xft:Terminus:size=12
|
2017-03-31 18:25:54 +02:00
|
|
|
|
2015-12-16 11:40:18 +01:00
|
|
|
|
|
|
|
! blue
|
|
|
|
URxvt*color4: #268bd2
|
|
|
|
|
|
|
|
|
|
|
|
URxvt.perl-ext: default,url-select
|
|
|
|
URxvt.keysym.M-u: perl:url-select:select_next
|
2017-03-01 15:45:50 +01:00
|
|
|
URxvt.url-select.launcher: firefox -new-tab
|
2015-12-16 11:40:18 +01:00
|
|
|
URxvt.url-select.underline: true
|
|
|
|
URxvt.searchable-scrollback: CM-s
|
|
|
|
'';
|
2016-08-02 11:49:24 +02:00
|
|
|
in ''
|
|
|
|
cat ${xdefaultsfile} | xrdb -merge
|
|
|
|
${pkgs.xorg.xhost}/bin/xhost +local:
|
|
|
|
'';
|
2015-08-02 23:12:38 +02:00
|
|
|
}
|