2024-09-09 05:14:11 +02:00
|
|
|
{ config, nixosConfig, ... }:
|
2024-04-05 01:38:57 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (config.home) homeDirectory;
|
2024-09-09 05:14:11 +02:00
|
|
|
|
|
|
|
isPhone = nixosConfig.programs.calls.enable;
|
2024-04-05 01:38:57 +02:00
|
|
|
in
|
2023-06-22 17:00:39 +02:00
|
|
|
{
|
2024-07-24 23:11:11 +02:00
|
|
|
xdg = {
|
|
|
|
userDirs = {
|
|
|
|
enable = true;
|
|
|
|
createDirectories = true;
|
|
|
|
|
|
|
|
templates = null;
|
|
|
|
publicShare = null;
|
|
|
|
|
2024-09-09 05:14:11 +02:00
|
|
|
desktop = homeDirectory;
|
|
|
|
download = if isPhone then homeDirectory else "${homeDirectory}/ダウンロード";
|
|
|
|
documents = if isPhone then homeDirectory else "${homeDirectory}/ドキュメント";
|
|
|
|
music = if isPhone then homeDirectory else "${homeDirectory}/音楽";
|
|
|
|
pictures = if isPhone then homeDirectory else "${homeDirectory}/画像";
|
|
|
|
videos = if isPhone then homeDirectory else "${homeDirectory}/ビデオ";
|
2024-07-24 23:11:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configFile."user-dirs.locale".text = "ja_JP";
|
|
|
|
};
|
2023-05-17 01:10:15 +02:00
|
|
|
}
|