flake.lock: update nix2lua
This commit is contained in:
parent
51fcb9d9e4
commit
b1229f7b36
2 changed files with 7 additions and 7 deletions
|
@ -20,11 +20,11 @@
|
|||
},
|
||||
"nix2lua": {
|
||||
"locked": {
|
||||
"lastModified": 1715344083,
|
||||
"narHash": "sha256-7UehRa7etk0oqSH4ty0nUsmeO3Z+Y1dbKwrGSlgaMIc=",
|
||||
"lastModified": 1715960729,
|
||||
"narHash": "sha256-SK14z5n6h+KgJVkGKzUG1YStpoVMbAbzc7AJPKj7YHU=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "6a096bf9a22903c92f0065ba3316d3821ddd8b72",
|
||||
"revCount": 41,
|
||||
"rev": "6ec872969faa552c246e8b490c287939d44300c1",
|
||||
"revCount": 44,
|
||||
"type": "git",
|
||||
"url": "https://git.pleshevski.ru/mynix/nix2lua"
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
|
||||
let
|
||||
inherit (lib.nix2lua) require var local set pipe1 call;
|
||||
inherit (lib.nix2lua) require requireTo var lset pipe1 call;
|
||||
|
||||
pluginOpts = ({ name, config, ... }: {
|
||||
options = with lib; with types; {
|
||||
|
@ -65,9 +65,9 @@ let
|
|||
var = if config.varName != null then var config.varName else require config.name;
|
||||
|
||||
genConfig = with lib; mkIf config.enable (flatten [
|
||||
(lib.optional (config.varName != null) (local (set config.varName (require config.name))))
|
||||
(lib.optional (config.varName != null) (requireTo config.varName config.name))
|
||||
(mapAttrsToList
|
||||
(k: v: local (set k (if builtins.isString v then require v else v)))
|
||||
(k: v: lset k (if builtins.isString v then require v else v))
|
||||
config.extraImports
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue