blob: 3cc4f91457a8d8440b762fc7daae3f11bea0a5bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ pkgs, ... }:
{
systemd.user.services.wallpaper = {
description = "wallpaper";
script = ''
${pkgs.hyprland}/bin/hyprctl hyprpaper wallpaper ,$(find -L /etc/nixos/home/wallpapers -type f | shuf -n 1)
'';
serviceConfig = {
Type = "oneshot";
};
};
systemd.user.timers.wallpaper = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "10m";
OnUnitActiveSec = "10m";
Unit = "wallpaper.service";
Persistent = true;
};
};
}
|