1
0

flake/nixosConfigurations.nix: Pull localNixpkgs directly instead of creating nixpkgs with local overlays again

This commit is contained in:
2025-06-28 16:10:46 +02:00
parent 11970e287c
commit fef845117e

View File

@@ -10,9 +10,10 @@ let
group ? null, group ? null,
modules ? [], modules ? [],
}: let }: let
localNixpkgs = nixpkgs.lib.attrByPath [ "nixpkgs-${name}" ] nixpkgs inputs; localNixpkgs = import ./nixpkgs.nix inputs;
in localNixpkgs.lib.nixosSystem { in nixpkgs.lib.nixosSystem {
system = system; system = system;
pkgs = localNixpkgs.${system};
modules = modules ++ [ modules = modules ++ [
self.nixosModules.nixfilesInputs self.nixosModules.nixfilesInputs
self.nixosModules.clerie self.nixosModules.clerie
@@ -22,12 +23,6 @@ let
# Set hostname # Set hostname
networking.hostName = lib.mkDefault name; networking.hostName = lib.mkDefault name;
# Apply overlays
nixpkgs.overlays = [
self.overlays.nixfilesInputs
self.overlays.clerie
];
/* /*
Make the contents of the flake availiable to modules. Make the contents of the flake availiable to modules.
Useful for having the monitoring server scraping the Useful for having the monitoring server scraping the