modules: secrets: remove 'with lib;'
This commit is contained in:
parent
fec4956063
commit
5f41bb1647
|
@ -1,6 +1,5 @@
|
||||||
{ inputs, lib, options, ... }:
|
{ inputs, lib, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.agenix.nixosModules.age
|
inputs.agenix.nixosModules.age
|
||||||
|
@ -9,12 +8,12 @@ with lib;
|
||||||
config.age = {
|
config.age = {
|
||||||
secrets =
|
secrets =
|
||||||
let
|
let
|
||||||
toName = removeSuffix ".age";
|
toName = lib.removeSuffix ".age";
|
||||||
toSecret = name: _: {
|
toSecret = name: _: {
|
||||||
file = ./. + "/${name}";
|
file = ./. + "/${name}";
|
||||||
owner = mkDefault "root";
|
owner = lib.mkDefault "root";
|
||||||
};
|
};
|
||||||
convertSecrets = n: v: nameValuePair (toName n) (toSecret n v);
|
convertSecrets = n: v: lib.nameValuePair (toName n) (toSecret n v);
|
||||||
secrets = import ./secrets.nix;
|
secrets = import ./secrets.nix;
|
||||||
in
|
in
|
||||||
lib.mapAttrs' convertSecrets secrets;
|
lib.mapAttrs' convertSecrets secrets;
|
||||||
|
|
Loading…
Reference in a new issue