summaryrefslogblamecommitdiff
path: root/home/wayland/modules/sway/swaylock.nix
blob: 30ec1ca21584429a60c72f2b3e8f3f64e8be5ea6 (plain) (tree)
1
2
3
4
5
6
7
8


                                                           

                       


                                                   


                   

                       

                           
                         
                                    


      
{ config, pkgs, ... }: let
  background = "${config.xdg.dataHome}/wayland/lockscreen";
in {
  programs.swaylock = {
    enable = true;
    package = pkgs.swaylock-effects.overrideAttrs {
      depsBuildBuild = [ pkgs.pkg-config ];
    };

    settings = {
      clock = true;
      daemonize = true;
      color = "404040";
      timestr = "%H:%M";
      datestr = "%a,%e %b";
      image = background;
      indicator-idle-visible = true;
    };
  };
}