Home

infra @14853affe529cf102118529394513f2e3fc640bd - refs - log -
-
https://git.jolheiser.com/infra.git
dragonwell flake
infra / jasmine / slideshow.nix
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pkgs, ... }:
{
  systemd.user.services = {
    feh = {
      description = "Autostart slideshow";
      wantedBy = [ "graphical-session.target" ];
      after = [ "graphical-session.target" ];
      serviceConfig = {
        ExecStart = pkgs.writeShellScript "mpv-slideshow" ''
          while true; do
            ${pkgs.lib.getExe pkgs.mpv} --shuffle --image-display-duration=5 --fullscreen /mnt/feh/
          done
        '';
        Restart = "always";
      };
    };
    disable-dpms = {
      description = "Disable screen blanking";
      wantedBy = [ "graphical-session.target" ];
      after = [ "graphical-session.target" ];
      serviceConfig = {
        Type = "oneshot";
        ExecStart = "${pkgs.lib.getExe pkgs.xorg.xset} s off -dpms";
      };
    };
  };
}