From 6e9c9a26cdd500dd13754dc99d1d618fc9d7284a Mon Sep 17 00:00:00 2001 From: Moritz 'e1mo' Fromm Date: Sat, 31 Dec 2022 22:20:11 +0100 Subject: [PATCH] Pass flake inputs and outputs in more generic way --- common/default.nix | 6 ++++-- flake.nix | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/default.nix b/common/default.nix index 46c8b18..40c6927 100644 --- a/common/default.nix +++ b/common/default.nix @@ -1,6 +1,8 @@ -{ config, lib, pkgs, nixpkgs, ... }: { +{ config, lib, pkgs, inputs, ... }: { imports = [ ./users.nix + # Monitoring is applicable to all hosts, thus placing it here + ../services/monitoring ]; environment.systemPackages = with pkgs; [ @@ -19,7 +21,7 @@ package = pkgs.nixVersions.stable; settings.auto-optimise-store = lib.mkDefault true; settings.trusted-users = [ "root" "@wheel" ]; - registry.nixpkgs.flake = nixpkgs; + registry.nixpkgs.flake = inputs.nixpkgs; extraOptions = '' experimental-features = nix-command flakes ''; diff --git a/flake.nix b/flake.nix index 913bdd0..87fa0c2 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,8 @@ { nixpkgs.overlays = [ overlay ]; _module.args = { - inherit nixpkgs; + inherit inputs; + outputs = self; }; } ];