many changes this one forgot
This commit is contained in:
parent
67c2117563
commit
44307a3f6f
22 changed files with 1081 additions and 437 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue