mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
38 lines
799 B
Nix
38 lines
799 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
konawallWithDelay = pkgs.writeShellScriptBin "konawall" ''
|
|
sleep 5 && ${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
|
|
'';
|
|
desktop_entry = ''
|
|
[Desktop Entry]
|
|
Exec=${konawallWithDelay}/bin/konawall
|
|
Icon=
|
|
Name=konawall
|
|
Path=
|
|
Terminal=False
|
|
Type=Application
|
|
'';
|
|
konawallConfig = {
|
|
interval = 30 * 60;
|
|
rotate = true;
|
|
source = "konachan";
|
|
tags = [
|
|
"rating:s"
|
|
"touhou"
|
|
"score:>=50"
|
|
"width:>=1500"
|
|
];
|
|
logging = {
|
|
file = "INFO";
|
|
console = "DEBUG";
|
|
};
|
|
};
|
|
in {
|
|
xdg.configFile = {
|
|
"konawall/config.toml".source = (pkgs.formats.toml {}).generate "konawall-config" konawallConfig;
|
|
"autostart/konawall.desktop".text = desktop_entry;
|
|
};
|
|
}
|