Pass flake inputs and outputs in more generic way
This commit is contained in:
parent
eef22f51c7
commit
6e9c9a26cd
2 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
{ config, lib, pkgs, nixpkgs, ... }: {
|
{ config, lib, pkgs, inputs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./users.nix
|
./users.nix
|
||||||
|
# Monitoring is applicable to all hosts, thus placing it here
|
||||||
|
../services/monitoring
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -19,7 +21,7 @@
|
||||||
package = pkgs.nixVersions.stable;
|
package = pkgs.nixVersions.stable;
|
||||||
settings.auto-optimise-store = lib.mkDefault true;
|
settings.auto-optimise-store = lib.mkDefault true;
|
||||||
settings.trusted-users = [ "root" "@wheel" ];
|
settings.trusted-users = [ "root" "@wheel" ];
|
||||||
registry.nixpkgs.flake = nixpkgs;
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -19,7 +19,8 @@
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [ overlay ];
|
nixpkgs.overlays = [ overlay ];
|
||||||
_module.args = {
|
_module.args = {
|
||||||
inherit nixpkgs;
|
inherit inputs;
|
||||||
|
outputs = self;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue