Nix fmt rfc style (more or less)

This commit is contained in:
Filippo Berto 2024-08-13 12:22:23 +02:00
parent e7496c447a
commit 515f098644
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
146 changed files with 2607 additions and 906 deletions

View file

@ -1,6 +1,8 @@
{ pkgs, ... }:
let update_time = "10m";
in {
let
update_time = "10m";
in
{
home.packages = [ pkgs.update-background ];
systemd.user.services."update-background" = {
@ -10,7 +12,9 @@ in {
PartOf = [ "graphical-session.target" ];
RequiresMountsFor = [ "/home/bertof/Immagini" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
Type = "oneshot";
IOSchedulingClass = "idle";
@ -19,8 +23,14 @@ in {
};
systemd.user.timers."update-background" = {
Unit = { Description = "Set random desktop background using feh"; };
Timer = { OnUnitActiveSec = update_time; };
Install = { WantedBy = [ "timers.target" ]; };
Unit = {
Description = "Set random desktop background using feh";
};
Timer = {
OnUnitActiveSec = update_time;
};
Install = {
WantedBy = [ "timers.target" ];
};
};
}