many changes this one forgot

This commit is contained in:
Lucy Hochkamp 2025-04-04 18:42:10 +02:00
parent 67c2117563
commit 44307a3f6f
No known key found for this signature in database
22 changed files with 1081 additions and 437 deletions

View file

@ -23,11 +23,16 @@ in
};
options.xyno.desktop.swayidle.swaylockArgs = lib.mkOption {
type = lib.types.str;
default = "-f --fade-in 2 --clock --timestr %T%z --datestr %F -i /home/${config.xyno.system.user.name}/Pictures/background.jpg";
default = "-f -F --clock --timestr %T --datestr %F --indicator -i /home/${config.xyno.system.user.name}/Pictures/background.jpg";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with cfg; [ package swaylockPackage ];
environment.systemPackages = with cfg; [ package swaylockPackage (
pkgs.writeScriptBin "lock" ''
#!/${pkgs.bash}/bin/bash
${cfg.swaylockPackage}/bin/swaylock ${cfg.swaylockArgs} "$@"
''
) ];
systemd.user.services.swayidle = {
unitConfig.PartOf = "graphical-session.target";
unitConfig.After = "graphical-session.target";