diff options
author | jeschli <jeschli@gmail.com> | 2019-04-09 20:12:06 +0200 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2019-04-09 20:12:06 +0200 |
commit | a4be985644762dcc2750a366db5780687690ef7d (patch) | |
tree | 5bc270cec7c01b986cd146769bc94bf2268c4113 /lass/3modules/screenlock.nix | |
parent | cb03267e0c3fd3bfa4beaa454f8986856a93963f (diff) | |
parent | 7e1b197dab13d024ba491c96dc959306324943c0 (diff) |
Merge branch 'master' of prism.r:stockholm
Diffstat (limited to 'lass/3modules/screenlock.nix')
-rw-r--r-- | lass/3modules/screenlock.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lass/3modules/screenlock.nix b/lass/3modules/screenlock.nix index 29c3861f2..b5c69b65a 100644 --- a/lass/3modules/screenlock.nix +++ b/lass/3modules/screenlock.nix @@ -13,15 +13,18 @@ let api = { enable = mkEnableOption "screenlock"; command = mkOption { - type = types.str; - default = "${pkgs.xlockmore}/bin/xlock -mode life1d -size 1"; + type = types.path; + default = pkgs.writeDash "screenlock" '' + ${pkgs.xlockmore}/bin/xlock -mode life1d -size 1 + sleep 3 + ''; }; }; imp = { systemd.services.screenlock = { before = [ "sleep.target" ]; - wantedBy = [ "sleep.target" ]; + requiredBy = [ "sleep.target" ]; environment = { DISPLAY = ":${toString config.services.xserver.display}"; }; |