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