抽象mkOutOfStoreSymlink,为以后更新为引用相对路径做准备

This commit is contained in:
2025-04-29 15:16:45 +08:00
parent d4177d6823
commit 9a39e2512e
7 changed files with 28 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
{ config, libs, pkgs, ... }:
let
conf = [ "hypr" "waybar" "rofi" "kitty" "mako" "wlogout" ];
confPath = "${config.home.homeDirectory}/.nix/modules/home/hyprland/conf";
confPath = "modules/home/hyprland/conf";
in
{
imports = [
@@ -52,7 +52,7 @@ in
(name: {
inherit name;
value = {
source = config.lib.file.mkOutOfStoreSymlink "${confPath}/${name}";
source = config.home-libs.mkOutOfStoreSymlink "${confPath}/${name}";
};
})
conf

View File

@@ -24,10 +24,10 @@
xdg.configFile = {
"Code/User/keybindings.json" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.nix/modules/home/vscode/keybindings.json";
source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/keybindings.json";
};
"Code/User/settings.json" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.nix/modules/home/vscode/settings.json";
source = config.home-libs.mkOutOfStoreSymlink "modules/home/vscode/settings.json";
};
};
}