mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
31 lines
632 B
Nix
31 lines
632 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
symlinksPaths = {
|
|
"${config.home.homeDirectory}/External/Music" = "Music";
|
|
"${xlib.dirs.wsl-home}" = "External";
|
|
"${xlib.dirs.wsl-storage}" = "Storage";
|
|
};
|
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
|
name = targetPath;
|
|
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
|
}) symlinksPaths;
|
|
in
|
|
{
|
|
imports = [
|
|
./apps
|
|
./minimal.nix
|
|
];
|
|
home.file = mkLinks;
|
|
home.activation = {
|
|
yaziSync = ''
|
|
${pkgs.rsync}/bin/rsync -Lrv "${config.home.homeDirectory}/.config/yazi/" "${xlib.dirs.wsl-storage}/yazi/"
|
|
'';
|
|
};
|
|
}
|