From 1abbd32e81e318fbe94a08952bedefb27b2d7477 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 2 Sep 2024 23:23:05 -0700 Subject: home --- home/ebisu/fortune/system/xdg.nix | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'home/ebisu/fortune/system') diff --git a/home/ebisu/fortune/system/xdg.nix b/home/ebisu/fortune/system/xdg.nix index dde487b..7a0bf32 100644 --- a/home/ebisu/fortune/system/xdg.nix +++ b/home/ebisu/fortune/system/xdg.nix @@ -1,9 +1,33 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { home.packages = with pkgs; [ xdg-utils xdg-ninja ]; - xdg.enable = true; + xdg = { + enable = true; + cacheHome = "${config.home.homeDirectory}/.cache"; + configHome = "${config.home.homeDirectory}/.config"; + dataHome = "${config.home.homeDirectory}/.local/share"; + stateHome = "${config.home.homeDirectory}/.local/state"; + + userDirs = { + enable = pkgs.stdenv.isLinux; + createDirectories = true; + download = "${config.home.homeDirectory}/Downloads"; + desktop = "${config.home.homeDirectory}/Desktop"; + documents = "${config.home.homeDirectory}/Documents"; + publicShare = null; # "${config.home.homeDirectory}/Public"; + templates = null; # "${config.home.homeDirectory}/Templates"; + music = "${config.home.homeDirectory}/Music"; + pictures = "${config.home.homeDirectory}/Pictures"; + videos = "${config.home.homeDirectory}/Videos"; + + extraConfig = { + XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; + XDG_MAIL_DIR = "${config.home.homeDirectory}/Mail"; + }; + }; + }; } -- cgit v1.2.3