From 86f680566246bc892e3a8f500cc6d61923f6c0a1 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 16 Mar 2025 14:52:45 +0100 Subject: [PATCH] Home: Configure paths module + use it when making out-of-store symlinks --- home/christoph/default.nix | 7 ++++++- home/modules/ags/default.nix | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home/christoph/default.nix b/home/christoph/default.nix index e34ce54b..94e2096a 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -32,6 +32,11 @@ rec { ]; # Enable and configure my custom HM modules. + paths = { + enable = true; # You can't disable this + nixflake = "${config.home.homeDirectory}/NixFlake"; + dotfiles = "${config.home.homeDirectory}/NixFlake/config"; + }; modules = { ags.enable = false; # TODO: Configure @@ -238,7 +243,7 @@ rec { formatted; # TODO: If navi enabled - ".local/share/navi/cheats/christoph.cheat".source = ../../config/navi/christoph.cheat; # TODO :Symlink + ".local/share/navi/cheats/christoph.cheat".source = config.lib.file.mkOutOfStoreSymlink "${config.paths.dotfiles}/navi/christoph.cheat"; }; # Here, custom scripts can be run when activating a HM generation. diff --git a/home/modules/ags/default.nix b/home/modules/ags/default.nix index c229cb91..0966d1c8 100644 --- a/home/modules/ags/default.nix +++ b/home/modules/ags/default.nix @@ -19,7 +19,7 @@ in { home.file = { # NOTE: Keep this symlinked as long as I'm configuring - ".config/ags".source = config.lib.file.mkOutOfStoreSymlink "/home/christoph/NixFlake/home/modules/ags/config"; + ".config/ags".source = config.lib.file.mkOutOfStoreSymlink "${config.paths.nixflake}/home/modules/ags/config"; # LSP typechecking support (use ags --init) # ".config/ags/types".source = config.lib.file.mkOutOfStoreSymlink "${pkgs.ags}/share/com.github.Aylur.ags/types";