mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake.nix: fix references to lib
to being an argument
It turns out the functions that is being wrapped by `mkHost` and `mkUser` both accept `lib` as one of the attribute on their respective functions. It is better to use that instead of chucking it as part of `extraSpecialArgs` or something similar.
This commit is contained in:
parent
3d9494d92a
commit
e235ad949e
16
flake.nix
16
flake.nix
@ -94,10 +94,8 @@
|
||||
(lib'.makeOverridable inputs.nixpkgs.lib.nixosSystem) {
|
||||
# The system of the NixOS system.
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
lib = lib';
|
||||
inherit system inputs self;
|
||||
};
|
||||
specialArgs = { inherit system inputs self; };
|
||||
modules =
|
||||
# Append with our custom NixOS modules from the modules folder.
|
||||
(lib'.modulesToList (lib'.filesToAttr ./modules/nixos))
|
||||
@ -115,7 +113,8 @@
|
||||
# making them available to our system. This will also prevent the
|
||||
# annoying downloads since it always get the latest revision.
|
||||
nix.registry = {
|
||||
# I'm narcissistic so I want my config to be one of the flakes in the registry.
|
||||
# I'm narcissistic so I want my config to be one of the flakes in the
|
||||
# registry.
|
||||
config.flake = self;
|
||||
|
||||
# All of the important flakes will be included.
|
||||
@ -180,19 +179,14 @@
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.sharedModules =
|
||||
lib'.modulesToList (lib'.filesToAttr ./modules/home-manager);
|
||||
home-manager.extraSpecialArgs = {
|
||||
lib = lib';
|
||||
inherit inputs system self;
|
||||
};
|
||||
home-manager.extraSpecialArgs = { inherit inputs system self; };
|
||||
};
|
||||
|
||||
mkUser = { system ? defaultSystem, extraModules ? [ ] }:
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit system;
|
||||
extraSpecialArgs = {
|
||||
extraSpecialArgs = { inherit system self inputs; };
|
||||
lib = lib';
|
||||
inherit system self inputs;
|
||||
};
|
||||
modules =
|
||||
# Importing our custom home-manager modules.
|
||||
(lib'.modulesToList (lib'.filesToAttr ./modules/home-manager))
|
||||
|
Loading…
Reference in New Issue
Block a user