59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ inputs, ... }:
|
|
{
|
|
lux.xdg = {
|
|
homeManager =
|
|
{ config, pkgs, ... }:
|
|
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";
|
|
};
|
|
|
|
mimeApps = {
|
|
enable = true;
|
|
defaultApplicationPackages = with pkgs; [
|
|
sioyek
|
|
vivaldi
|
|
neovim
|
|
];
|
|
};
|
|
|
|
terminal-exec = {
|
|
enable = true;
|
|
settings = {
|
|
default = [
|
|
"kitty.desktop"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|