home: wm: use 'i3lock' with 'i3'

Rather than use it as the default, set it in the `i3` module.
This commit is contained in:
Bruno BELANYI 2026-04-04 16:18:54 +01:00
parent f02465091c
commit 537e16501b
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
let let
mkRelatedOption = description: relatedWMs: mkRelatedOption = description: relatedWMs:
let let
@ -72,7 +72,6 @@ in
command = mkOption { command = mkOption {
type = types.str; type = types.str;
default = "${lib.getExe pkgs.i3lock} -n -c 000000";
example = "\${lib.getExe pkgs.i3lock} -n -i lock.png"; example = "\${lib.getExe pkgs.i3lock} -n -i lock.png";
description = "Locker command to run"; description = "Locker command to run";
}; };

View file

@ -71,6 +71,9 @@ in
xdotool # Used by 'rofi-rbw', in a mapping xdotool # Used by 'rofi-rbw', in a mapping
]; ];
# Set `i3lock` as the (default) lock command
my.home.wm.screen-lock.command = lib.mkDefault "${lib.getExe pkgs.i3lock} -n -c 000000";
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = true; enable = true;