summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/base-gui.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/base-gui.nix')
-rw-r--r--makefu/2configs/base-gui.nix39
1 files changed, 29 insertions, 10 deletions
diff --git a/makefu/2configs/base-gui.nix b/makefu/2configs/base-gui.nix
index 5f977251f..c4755c217 100644
--- a/makefu/2configs/base-gui.nix
+++ b/makefu/2configs/base-gui.nix
@@ -1,20 +1,39 @@
{ 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;
- services.xserver.layout = "us";
+ services.xserver = {
+ enable = true;
+ layout = "us";
+ xkbVariant = "altgr-intl";
+ xkbOptions = "ctrl:nocaps";
-# use awesome, direct boot into
- services.xserver.displayManager.auto.enable =true;
- services.xserver.displayManager.auto.user =config.krebs.users.makefu;
- services.xserver.windowManager.awesome.enable = true;
+ 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.xlockmore
+ pkgs.rxvt_unicode-with-plugins
+ ];
-# use pulseaudio
- environment.systemPackages = [ pkgs.slock ];
hardware.pulseaudio = {
enable = true;
systemWide = true;