45 lines
1.5 KiB
Nix
45 lines
1.5 KiB
Nix
{ config, pkgs, ... }: {
|
||
# Основные параметры xdg.
|
||
# Настройка порталов.
|
||
xdg = {
|
||
enable = true;
|
||
portal = {
|
||
enable = true;
|
||
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
||
config = {
|
||
common.default = "gtk";
|
||
};
|
||
};
|
||
|
||
# Указания скрытых домашних каталогов.
|
||
cacheHome = builtins.toPath "${config.home.homeDirectory}/.cache";
|
||
configHome = builtins.toPath "${config.home.homeDirectory}/.config";
|
||
dataHome = builtins.toPath "${config.home.homeDirectory}/.local/share";
|
||
stateHome = builtins.toPath "${config.home.homeDirectory}/.local/state";
|
||
|
||
# Указания системных каталогов.
|
||
systemDirs = {
|
||
config = [ "/etc/xdg" ];
|
||
data = [ "/usr/share" "/usr/local/share" ];
|
||
};
|
||
|
||
# Указание пользовательских каталогов.
|
||
# null = не назначать каталог(т.е полностью убрать).
|
||
userDirs = {
|
||
enable = true;
|
||
createDirectories = true;
|
||
|
||
desktop = builtins.toPath "${config.home.homeDirectory}/Desktop";
|
||
documents = builtins.toPath "${config.home.homeDirectory}/Documents";
|
||
download = builtins.toPath "${config.home.homeDirectory}/Downloads";
|
||
pictures = builtins.toPath "${config.home.homeDirectory}/Pictures";
|
||
videos = null;
|
||
music = null;
|
||
publicShare = null;
|
||
templates = null;
|
||
|
||
};
|
||
};
|
||
}
|
||
|