Initial commit

This commit is contained in:
2026-02-28 14:18:57 +01:00
commit 8110e8f10b
45 changed files with 6381 additions and 0 deletions

40
modules/xdg.nix Normal file
View File

@@ -0,0 +1,40 @@
{ inputs, ... }:
{
lux.xdg = {
homeManager =
{ config, ... }:
let
homeDir = config.home.homeDirectory;
localDir = "${homeDir}/.local";
mediaDir = "${homeDir}/media";
in
{
xdg = {
enable = true;
cacheHome = "${localDir}/cache";
configHome = "${homeDir}/.config";
dataHome = "${localDir}/share";
stateHome = "${localDir}/state";
userDirs = {
enable = true;
createDirectories = true;
download = "${homeDir}/downloads";
documents = "${homeDir}/documents";
# Organize into media folder
music = "${mediaDir}/music";
pictures = "${mediaDir}/images";
videos = "${mediaDir}/videos";
# Hide these
desktop = "${localDir}/desktop";
publicShare = "${localDir}/public";
templates = "${localDir}/templates";
};
};
};
};
}