nixos: use attrset for long function args

This commit is contained in:
Ching Pei Yang 2024-12-29 18:47:22 +01:00 committed by raf
parent fcbc49e2e5
commit ecc9b60a2d
2 changed files with 6 additions and 2 deletions

View file

@ -42,7 +42,7 @@
}; };
nixosModules = { nixosModules = {
nvf = import ./flake/modules/nixos.nix self.packages lib inputs; nvf = import ./flake/modules/nixos.nix {inherit lib self;};
default = self.nixosModules.nvf; default = self.nixosModules.nvf;
neovim-flake = neovim-flake =
lib.warn '' lib.warn ''

View file

@ -1,9 +1,13 @@
# NixOS module # NixOS module
packages: lib: inputs: { {
self,
lib,
}: {
config, config,
pkgs, pkgs,
... ...
}: let }: let
inherit (self) inputs packages;
inherit (lib) maintainers; inherit (lib) maintainers;
inherit (lib.modules) mkIf mkOverride mkAliasOptionModule; inherit (lib.modules) mkIf mkOverride mkAliasOptionModule;
inherit (lib.lists) optional; inherit (lib.lists) optional;