tv xmonad: use slock service

This commit is contained in:
tv 2018-12-02 15:36:55 +01:00
parent 9f4d207bb7
commit 46dc547bbe

View File

@ -24,17 +24,6 @@ in {
pkgs.xlibs.fontschumachermisc
];
# TODO dedicated group, i.e. with a single user [per-user-setuid]
# TODO krebs.setuid.slock.path vs /run/wrappers/bin
krebs.setuid.slock = {
filename = "${pkgs.slock}/bin/slock";
group = "wheel";
envp = {
DISPLAY = ":${toString config.services.xserver.display}";
USER = cfg.user.name;
};
};
services.xserver = {
# Don't install feh into systemPackages
@ -96,10 +85,11 @@ in {
]);
};
path = [
config.tv.slock.package
pkgs.fzmenu
pkgs.pulseaudioLight.out
pkgs.rxvt_unicode
"/run/wrappers" # for slock, and su
"/run/wrappers" # for su
];
serviceConfig = {
SyslogIdentifier = "xmonad";
@ -155,4 +145,9 @@ in {
User = cfg.user.name;
};
};
tv.slock = {
enable = true;
user = cfg.user;
};
}