From dab9d5a28a6838ea389f8f7e4510b75ccdd9f774 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 20 Jul 2023 09:00:47 +0800 Subject: [PATCH] use `config.xdg.configHome` --- flake.nix | 9 +++++---- home.nix | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index e7d3e20..a83f082 100644 --- a/flake.nix +++ b/flake.nix @@ -128,13 +128,14 @@ { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - nixpkgs.overlays = [attic.overlays.default]; - - users.users.ryanccn.home = "/Users/ryanccn"; - home-manager.users.ryanccn = import ./home.nix { + home-manager.extraSpecialArgs = { agenixModule = agenix.homeManagerModules.age; ctpModule = catppuccin.homeManagerModules.catppuccin; }; + nixpkgs.overlays = [attic.overlays.default]; + + users.users.ryanccn.home = "/Users/ryanccn"; + home-manager.users.ryanccn = import ./home.nix; } ]; }; diff --git a/home.nix b/home.nix index 39843dd..d3b9c25 100644 --- a/home.nix +++ b/home.nix @@ -1,4 +1,5 @@ { + config, agenixModule, ctpModule, ... @@ -22,6 +23,6 @@ age.secrets."attic.toml" = { file = ./secrets/attic.toml.age; - path = "/Users/ryanccn/.config/attic/config.toml"; + path = "${config.xdg.configHome}/attic/config.toml"; }; }