home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bdcf0cf674bd0c3175889e8a5aeaa616c923bfdd
parent efb0a4d695bb00860e5eddc543d46dff7f3aa8ad
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 12 Mar 2020 16:08:30 +0100

i3: re-enable screen-locker

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/i3.nix | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/profiles/i3.nix b/modules/profiles/i3.nix @@ -20,6 +20,11 @@ in options = { profiles.i3 = { enable = mkEnableOption "Enable i3 profile"; + lockCmd = mkOption { + default = "slimlock"; + description = "Lock command to use"; + type = types.str; + }; }; }; config = mkIf cfg.enable { @@ -57,6 +62,11 @@ in }; udiskie.enable = true; network-manager-applet.enable = true; + screen-locker = { + enable = true; + lockCmd = cfg.lockCmd; + inactiveInterval = 60; + }; random-background = { enable = true; imageDirectory = "${config.home.homeDirectory}/desktop/pictures/walls";