Pass flake inputs and outputs in more generic way

This commit is contained in:
Moritz 'e1mo' Fromm 2022-12-31 22:20:11 +01:00
parent eef22f51c7
commit 6e9c9a26cd
No known key found for this signature in database
GPG key ID: 1D5D79A439E787F1
2 changed files with 6 additions and 3 deletions

View file

@ -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
'';

View file

@ -19,7 +19,8 @@
{
nixpkgs.overlays = [ overlay ];
_module.args = {
inherit nixpkgs;
inherit inputs;
outputs = self;
};
}
];