feat: add discord web desktop entry

This commit is contained in:
Nydragon 2024-10-30 16:24:05 +01:00
parent d526fdac98
commit d3c2657380
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
2 changed files with 40 additions and 4 deletions

BIN
assets/favicon-discord.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -2,6 +2,7 @@
self,
pkgs,
lib,
config,
...
}:
let
@ -17,8 +18,43 @@ let
};
in
{
xdg.desktopEntries = builtins.listToAttrs [
(mkURLEntry "Paperless" "https://paperless.ccnlc.eu" "${self}/assets/favicon-paperless.png")
(mkURLEntry "KitchenOwl" "https://kitchenowl.ccnlc.eu" "${self}/assets/favicon-kitchenowl.png")
];
xdg = {
desktopEntries = builtins.listToAttrs [
(mkURLEntry "Paperless" "https://paperless.ccnlc.eu" "${self}/assets/favicon-paperless.png")
(mkURLEntry "KitchenOwl" "https://kitchenowl.ccnlc.eu" "${self}/assets/favicon-kitchenowl.png")
(mkURLEntry "Discord" "https://discord.com/app" "${self}/assets/favicon-discord.png")
];
userDirs =
let
home = config.home.homeDirectory;
disable =
a:
lib.listToAttrs (
lib.map (key: {
name = key;
value = null;
}) a
);
in
(lib.mapAttrs (_: folder: "${home}/${folder}") {
download = "downloads";
videos = "videos";
pictures = "pictures";
})
// (disable [
"music"
"documents"
"templates"
"publicShare"
"desktop"
])
// {
enable = true;
createDirectories = true;
extraConfig = {
XDG_DEVEL_DIR = "${home}/devel";
};
};
};
}