services.automatic-timezoned: Add persistDir and timezone restore

This commit is contained in:
RingOfStorms (Joshua Bell) 2026-01-13 14:08:42 -06:00
parent f5595cad1a
commit 8be372e076
6 changed files with 215 additions and 91 deletions

View file

@ -206,16 +206,6 @@ in
'';
})
(mkIf ((length cfg.wallpapers) > 0) {
environment.etc."xdg/plasma-org.kde.plasma.desktop-appletsrc".text =
let
wallpaperPath = builtins.head cfg.wallpapers;
in
''
[Containments][1][Wallpaper][org.kde.image][General]
Image=file://${wallpaperPath}
'';
})
# GPU blocks
(mkIf cfg.gpu.amd.enable {

View file

@ -5,7 +5,9 @@
}:
let
cfg = osConfig.ringofstorms.dePlasma;
inherit (lib) mkIf;
inherit (lib) mkIf optionalAttrs;
# Get the first wallpaper from the list if available
wallpaper = if (builtins.length cfg.wallpapers) > 0 then builtins.head cfg.wallpapers else null;
in
{
imports = [
@ -294,6 +296,8 @@ in
lookAndFeel = "org.kde.breezedark.desktop";
theme = "breeze-dark";
cursor.theme = "breeze_cursors";
} // optionalAttrs (wallpaper != null) {
wallpaper = wallpaper;
};
configFile = {