feat: add discord web desktop entry
This commit is contained in:
parent
d526fdac98
commit
d3c2657380
2 changed files with 40 additions and 4 deletions
BIN
assets/favicon-discord.png
Normal file
BIN
assets/favicon-discord.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue