From 61a0c56e5d4cb4eb4f7b63094863ddd594ae3add Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 12 Oct 2026 11:24:56 -0400 Subject: [PATCH] refactor(dotfiles): share package overlay with guests --- src/dotfiles/default.nix | 7 ++++++- src/dotfiles/hosts.nix | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dotfiles/default.nix b/src/dotfiles/default.nix index 9e03ae9..fca909f 100644 --- a/src/dotfiles/default.nix +++ b/src/dotfiles/default.nix @@ -33,7 +33,12 @@ let repositoryModules = modules; root = root + "/guests"; }; - modules.imports = util.collectNixFiles (root + "/modules"); + modules.imports = [ + { + nixpkgs.overlays = [ self.overlays.default ]; + } + ] + ++ util.collectNixFiles (root + "/modules"); in import ./hosts.nix { diff --git a/src/dotfiles/hosts.nix b/src/dotfiles/hosts.nix index d5d2ea9..5ce6e53 100644 --- a/src/dotfiles/hosts.nix +++ b/src/dotfiles/hosts.nix @@ -24,10 +24,6 @@ let inputs.sops-nix.nixosModules.sops inputs.stylix.nixosModules.stylix - { - nixpkgs.overlays = [ specialArgs.self.overlays.default ]; - } - repositoryModules guestModules