mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
44 lines
869 B
Nix
44 lines
869 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
symlinksPaths = {
|
|
"${config.home.homeDirectory}/External/Music" = "Music";
|
|
};
|
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
|
name = targetPath;
|
|
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
|
}) symlinksPaths;
|
|
in
|
|
{
|
|
imports = [
|
|
./minimal.nix
|
|
];
|
|
home.file = mkLinks;
|
|
xdg = {
|
|
enable = true;
|
|
autostart.enable = true;
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = false;
|
|
desktop = null;
|
|
documents = null;
|
|
download = null;
|
|
music = null;
|
|
pictures = null;
|
|
publicShare = null;
|
|
templates = null;
|
|
videos = null;
|
|
};
|
|
};
|
|
home.activation = {
|
|
yaziSync = ''
|
|
${pkgs.rsync}/bin/rsync -Lrv --no-A --no-X "${config.home.homeDirectory}/.config/yazi/" "${xlib.dirs.storage}/yazi/"
|
|
'';
|
|
};
|
|
}
|