diff options
author | makefu <github@syntax-fehler.de> | 2019-04-12 19:28:17 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-04-12 19:28:17 +0200 |
commit | 8bea69348ae0f286b395e9087db7d70e6f1a375a (patch) | |
tree | 956a2dfb39f0ca1bb00ba40bd21e18037f1093fb /lass/3modules/screenlock.nix | |
parent | 179e95d0bfc985940d4970d6c1365c2c8e000d0d (diff) | |
parent | 72cd01d104bb61b5a5e28c2c10e0bd2bd55ce681 (diff) |
Merge remote-tracking branch 'lass/master'
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}"; }; |