mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
parent
5890176f85
commit
a42e05d9b1
3 changed files with 0 additions and 63 deletions
|
|
@ -765,30 +765,6 @@ in
|
|||
}) cfg.plugins
|
||||
);
|
||||
})
|
||||
(
|
||||
let
|
||||
themes = lib.foldl (
|
||||
themeList: plugin:
|
||||
if lib.pathIsDirectory "${plugin.src}/themes" then
|
||||
themeList ++ lib.filesystem.listFilesRecursive "${plugin.src}/themes"
|
||||
else
|
||||
themeList
|
||||
) [ ] cfg.plugins;
|
||||
in
|
||||
(mkIf (lib.length themes > 0) {
|
||||
xdg.configFile = lib.mkMerge (
|
||||
map (
|
||||
theme:
|
||||
let
|
||||
basename = lib.last (builtins.split "/" (toString theme));
|
||||
in
|
||||
{
|
||||
"fish/themes/${basename}".source = theme;
|
||||
}
|
||||
) themes
|
||||
);
|
||||
})
|
||||
)
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue