[doom] Attempt config with symlink
I'm not 100% this works yet. But the idea here is to symlink from the config directory into where we are locally storing the doom config. The intention here is to enable `doom sync` to work without requiring a full NixOS rebuild
This commit is contained in:
@@ -42,6 +42,11 @@ in
|
|||||||
DOOMLOCALDIR = "${config.xdg.dataHome}/doom";
|
DOOMLOCALDIR = "${config.xdg.dataHome}/doom";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file."${config.xdg.configHome}/doom".source = ./doom;
|
home.activation.doomConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
|
if [ ! -L "${config.xdg.configHome}/doom" ]; then
|
||||||
|
rm -rf "${config.xdg.configHome}/doom"
|
||||||
|
ln -sf "${./doom}" "${config.xdg.configHome}/doom"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user