utils: rename utils to usr for module args

Avoids a name conflict.
This commit is contained in:
Timothy DeHerrera 2020-01-05 23:01:00 -07:00
parent 6770621c70
commit e92bb060ee
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 4 additions and 4 deletions

View File

@ -121,13 +121,13 @@ from this directory.
## Lib
The [lib](lib) directory contains a file `utils.nix` which is an attribute set
meant to consist mainly of utility functions you might want to write and use
throughout the configuration. They are available via a new `utils` attribute
throughout the configuration. They are available via a new `usr` attribute
passed to every NixOS module, eg:
```
# hosts/some-host.nix
{ utils, ... }:
let data = utils.myFunction # ...
{ usr, ... }:
let data = usr.myFunction # ...
in
{
# NixOS configuration

View File

@ -10,7 +10,7 @@ let
nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit utils; };
specialArgs.usr = utils;
modules = let
core = ../profiles/core.nix;