flake/nixosConfigurations.nix: Pull localNixpkgs directly instead of creating nixpkgs with local overlays again
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user