1

update nixos mylib

This commit is contained in:
2022-08-08 16:29:58 +02:00
parent 9d87ffcc7b
commit 5d69b16661
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{ inputs, pkgs, lib, ... }:
rec {
nixos = import ./nixos.nix;
nixos = import ./nixos.nix { inherit inputs pkgs lib; };
}

View File

@ -1,9 +1,7 @@
{ inputs, pkgs, lib, ... }:
let
# Allows to just use nixpkgs without qualifiers
inherit (inputs) nixpkgs;
inherit (inputs) nixpkgs home-manager;
in rec {
mkNixosConfig = { system, hostname, extraModules, homeManagerConfig }:
@ -13,7 +11,7 @@ in rec {
# Make our inputs available to the configuration.nix (for importing modules)
specialArgs = { inherit inputs; };
modules = builtins.conatLists [
modules = builtins.concatLists [
[
# Replace the pkgs to include overlays/unfree
{ nixpkgs.pkgs = pkgs; }
@ -25,7 +23,7 @@ in rec {
(import "./nixos/configuration-" + hostname + ".nix")
]
extraModules
homeManagerConfig
[ homeManagerConfig ]
];
};