l: use xlockmore as lockscreen

This commit is contained in:
lassulus 2018-03-18 22:03:25 +01:00
parent 8a0e77e2bb
commit fa724ceab0
2 changed files with 2 additions and 4 deletions

View File

@ -168,8 +168,6 @@ with import <stockholm/lib>;
'') '')
]; ];
lass.screenlock.command = "${pkgs.i3lock}/bin/i3lock -i /home/lass/lock.png -t -f";
programs.adb.enable = true; programs.adb.enable = true;
users.users.mainUser.extraGroups = [ "adbusers" "docker" ]; users.users.mainUser.extraGroups = [ "adbusers" "docker" ];

View File

@ -14,7 +14,7 @@ let
enable = mkEnableOption "screenlock"; enable = mkEnableOption "screenlock";
command = mkOption { command = mkOption {
type = types.str; type = types.str;
default = "${pkgs.i3lock}/bin/i3lock -i /var/lib/wallpaper/wallpaper -f"; default = "${pkgs.xlockmore}/bin/xlock -mode life1d -size 1";
}; };
}; };
@ -28,7 +28,7 @@ let
serviceConfig = { serviceConfig = {
SyslogIdentifier = "screenlock"; SyslogIdentifier = "screenlock";
ExecStart = cfg.command; ExecStart = cfg.command;
Type = "forking"; Type = "simple";
User = "lass"; User = "lass";
}; };
}; };