mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
xml experiments
This commit is contained in:
@@ -124,18 +124,25 @@
|
|||||||
source = ./wallpaper;
|
source = ./wallpaper;
|
||||||
target = ".local/share/backgrounds";
|
target = ".local/share/backgrounds";
|
||||||
};
|
};
|
||||||
home.file.".local/share/gnome-background-properties/custom-wallpapers.xml" = {
|
|
||||||
text = ''
|
home.file.".local/share/gnome-background-properties/my-wallpapers.xml" = {
|
||||||
|
text = let
|
||||||
|
files = builtins.attrNames (builtins.readDir ./wallpaper);
|
||||||
|
entry = file: ''
|
||||||
|
<wallpaper deleted="false">
|
||||||
|
<name>${file}</name>
|
||||||
|
<filename>/home/mo/.local/share/backgrounds/${file}</filename>
|
||||||
|
<options>zoom</options>
|
||||||
|
</wallpaper>
|
||||||
|
'';
|
||||||
|
in ''
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
|
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
|
||||||
<wallpapers>
|
<wallpapers>
|
||||||
<wallpaper deleted="false">
|
${builtins.concatStringsSep "\n" (map entry files)}
|
||||||
<name>Custom Wallpapers</name>
|
|
||||||
<filename>/home/mo/.local/share/backgrounds</filename>
|
|
||||||
<options>zoom</options>
|
|
||||||
</wallpaper>
|
|
||||||
</wallpapers>
|
</wallpapers>
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user