diff --git a/assets/favicon-discord.png b/assets/favicon-discord.png new file mode 100644 index 0000000..e9dc50d Binary files /dev/null and b/assets/favicon-discord.png differ diff --git a/home/desktop/default.nix b/home/desktop/default.nix index ef8b204..150f8bb 100644 --- a/home/desktop/default.nix +++ b/home/desktop/default.nix @@ -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"; + }; + }; + }; }