Define xmonad config, disable red border
This commit is contained in:
parent
66885cc65c
commit
1dad75f72a
20
nix/base.nix
20
nix/base.nix
@ -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" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user