move xdg-dirs config to home level

This commit is contained in:
ulic-youthlic 2025-02-01 23:09:24 +08:00
parent 4c7e6e3af3
commit 69e684bd7e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
6 changed files with 65 additions and 70 deletions

View file

@ -5,32 +5,23 @@
...
}:
{
youthlic.programs = {
helix.enable = true;
gpg.enable = true;
fish.enable = true;
bash.enable = true;
starship.enable = true;
sops.enable = true;
atuin.enable = true;
git = {
email = "ulic.youthlic@gmail.com";
name = "ulic-youthlic";
encrypt-credential = false;
youthlic = {
xdg-dirs.enable = true;
programs = {
helix.enable = true;
gpg.enable = true;
fish.enable = true;
bash.enable = true;
starship.enable = true;
sops.enable = true;
atuin.enable = true;
git = {
email = "ulic.youthlic@gmail.com";
name = "ulic-youthlic";
encrypt-credential = false;
};
};
};
xdg.userDirs = {
enable = true;
download = "${config.home.homeDirectory}/dls";
documents = "${config.home.homeDirectory}/doc";
music = "${config.home.homeDirectory}/mus";
pictures = "${config.home.homeDirectory}/pic";
videos = "${config.home.homeDirectory}/vid";
templates = "${config.home.homeDirectory}/tpl";
publicShare = "${config.home.homeDirectory}/pub";
desktop = "${config.home.homeDirectory}/dsk";
createDirectories = true;
};
home.username = "${unixName}";
home.homeDirectory = "/home/${unixName}";
home.stateVersion = "24.11";