From fbe1c41f642b629c4a04e18b4525fa665ad40a03 Mon Sep 17 00:00:00 2001 From: mtaku3 Date: Tue, 18 Jun 2024 14:39:30 +0900 Subject: [PATCH] fix: fix user-module import --- snowfall-lib/home/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snowfall-lib/home/default.nix b/snowfall-lib/home/default.nix index 174d578..859175a 100644 --- a/snowfall-lib/home/default.nix +++ b/snowfall-lib/home/default.nix @@ -355,10 +355,12 @@ in { home-manager = { users.${user-name} = mkIf config.snowfallorg.users.${user-name}.home.enable ({pkgs, ...}: { - imports = (home-config.imports or []) ++ other-modules ++ [user-module]; + imports = (home-config.imports or []) ++ other-modules; config = builtins.removeAttrs home-config ["imports"]; }); + sharedModules = optional config.snowfallorg.users.${user-name}.home.enable user-module; + # NOTE: Without this home-manager will instead create its own package set which won't contain the same config and # user-defined packages/overlays as the flake's nixpkgs channel. useGlobalPkgs = mkDefault true;