Skip to content

Commit

Permalink
nixos: use attrset for long function args
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename authored and NotAShelf committed Jan 2, 2025
1 parent fcbc49e commit ecc9b60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
};

nixosModules = {
nvf = import ./flake/modules/nixos.nix self.packages lib inputs;
nvf = import ./flake/modules/nixos.nix {inherit lib self;};
default = self.nixosModules.nvf;
neovim-flake =
lib.warn ''
Expand Down
6 changes: 5 additions & 1 deletion flake/modules/nixos.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# NixOS module
packages: lib: inputs: {
{
self,
lib,
}: {
config,
pkgs,
...
}: let
inherit (self) inputs packages;
inherit (lib) maintainers;
inherit (lib.modules) mkIf mkOverride mkAliasOptionModule;
inherit (lib.lists) optional;
Expand Down

0 comments on commit ecc9b60

Please sign in to comment.