mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 18:19:10 +00:00
users/foo-dogsquared/dotfiles: update path
This commit is contained in:
parent
ac036d10a9
commit
b83872854f
@ -4,8 +4,11 @@ let
|
|||||||
userCfg = config.users.foo-dogsquared;
|
userCfg = config.users.foo-dogsquared;
|
||||||
cfg = userCfg.dotfiles;
|
cfg = userCfg.dotfiles;
|
||||||
|
|
||||||
dotfiles = config.lib.file.mkOutOfStoreSymlink config.home.mutableFile."library/dotfiles".path;
|
projectsDir = config.xdg.userDirs.extraConfig.XDG_PROJECTS_DIR;
|
||||||
getDotfiles = path: "${dotfiles}/${path}";
|
|
||||||
|
dotfiles = "${projectsDir}/dotfiles";
|
||||||
|
dotfiles' = config.lib.file.mkOutOfStoreSymlink config.home.mutableFile."${dotfiles}".path;
|
||||||
|
getDotfiles = path: "${dotfiles'}/${path}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.users.foo-dogsquared.dotfiles.enable =
|
options.users.foo-dogsquared.dotfiles.enable =
|
||||||
@ -13,13 +16,13 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
{
|
{
|
||||||
home.mutableFile."library/dotfiles" = {
|
home.mutableFile.${dotfiles} = {
|
||||||
url = "https://github.com/foo-dogsquared/dotfiles.git";
|
url = "https://github.com/foo-dogsquared/dotfiles.git";
|
||||||
type = "git";
|
type = "git";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"${config.home.mutableFile."library/dotfiles".path}/bin"
|
"${config.home.mutableFile.${dotfiles}.path}/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
Loading…
Reference in New Issue
Block a user