restructuring

This commit is contained in:
cnst
2024-06-23 16:37:06 +02:00
parent cdf2b9771c
commit f9e2ad7321
6 changed files with 212 additions and 22 deletions

35
nixos/xdg/default.nix Normal file
View File

@@ -0,0 +1,35 @@
{
pkgs,
config,
lib,
...
}:
{
config = {
# see profiles/desktop-<foo>.nix for xdg-portal stuff
home-manager.users.cnst =
{ pkgs, ... }:
{
home.packages =
with pkgs;
[ xdg-user-dirs ]
++ (lib.optionals (pkgs.stdenv.hostPlatform.system != "riscv64-linux") [ xdg-utils ]);
xdg = {
enable = true;
userDirs = {
enable = true;
desktop = "$HOME/desktop";
documents = "$HOME/documents";
download = "$HOME/downloads";
music = "$HOME/documents/music";
pictures = "$HOME/documents/images";
publicShare = "$HOME/documents/share";
templates = "$HOME/documents/templates";
videos = "$HOME/documents/videos";
};
};
};
};
}