Define xmonad config, disable red border

This commit is contained in:
Mikhail Klementev 2018-07-06 15:06:00 +00:00
parent 66885cc65c
commit 1dad75f72a

View File

@ -23,4 +23,24 @@
extraGroups = [ "audio" ]; extraGroups = [ "audio" ];
createHome = true; createHome = true;
}; };
environment.etc."xmonad.hs".text = ''
import XMonad
main = xmonad defaultConfig
{ workspaces = [ "" ]
, borderWidth = 0
}
'';
systemd.services.home-user-build-xmonad = {
description = "Create and xmonad configuration";
serviceConfig = {
ConditionFileNotEmpty = "!/home/user/.xmonad/xmonad.hs";
ExecStart = "/bin/sh -c 'mkdir /home/user/.xmonad && cp /etc/xmonad.hs /home/user/.xmonad/xmonad.hs'";
RemainAfterExit = "yes";
Type = "oneshot";
User = "user";
};
wantedBy = [ "multi-user.target" ];
};
} }