mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 04:34:25 +01:00
Switch to nixfmt
This commit is contained in:
parent
1d70117186
commit
b38d2df431
55 changed files with 1559 additions and 1540 deletions
|
|
@ -1,21 +1,24 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
assembleWrapper = wrapperConfig:
|
||||
(inputs.wrapper-manager.lib {
|
||||
inherit pkgs;
|
||||
modules = [{wrappers.wrappedPackage = wrapperConfig;}];
|
||||
})
|
||||
.config
|
||||
.wrappers
|
||||
.wrappedPackage
|
||||
.wrapped;
|
||||
in {
|
||||
_module.args.wrappers = lib.pipe (builtins.readDir ./.) [
|
||||
(lib.filterAttrs (name: value: name != "default.nix"))
|
||||
(lib.concatMapAttrs (name: _: {${lib.removeSuffix ".nix" name} = import ./${name} {inherit assembleWrapper pkgs lib;};}))
|
||||
];
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
assembleWrapper =
|
||||
wrapperConfig:
|
||||
(inputs.wrapper-manager.lib {
|
||||
inherit pkgs;
|
||||
modules = [ { wrappers.wrappedPackage = wrapperConfig; } ];
|
||||
}).config.wrappers.wrappedPackage.wrapped;
|
||||
in
|
||||
{
|
||||
_module.args.wrappers = lib.pipe (builtins.readDir ./.) [
|
||||
(lib.filterAttrs (name: value: name != "default.nix"))
|
||||
(lib.concatMapAttrs (
|
||||
name: _: {
|
||||
${lib.removeSuffix ".nix" name} = import ./${name} { inherit assembleWrapper pkgs lib; };
|
||||
}
|
||||
))
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue