nix-config/home/xdg-user-dirs.nix
2024-09-08 21:23:49 -04:00

26 lines
739 B
Nix

{ config, phone, ... }:
let
inherit (config.home) homeDirectory;
in
{
xdg = {
userDirs = {
enable = true;
createDirectories = true;
templates = null;
publicShare = null;
desktop = "${homeDirectory}";
download = if phone then "${homeDirectory}" else "${homeDirectory}/";
documents = if phone then "${homeDirectory}" else "${homeDirectory}/";
music = if phone then "${homeDirectory}" else "${homeDirectory}/";
pictures = if phone then "${homeDirectory}" else "${homeDirectory}/";
videos = if phone then "${homeDirectory}" else "${homeDirectory}/";
};
configFile."user-dirs.locale".text = "ja_JP";
};
}