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 committed Dec 29, 2024
1 parent dd567cc commit 3c3b08f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
};

nixosModules = {
nvf = import ./flake/modules/nixos.nix self.packages lib inputs;
nvf = import ./flake/modules/nixos.nix {
inherit lib inputs;
inherit (self) packages;
};
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,5 +1,9 @@
# NixOS module
packages: lib: inputs: {
{
packages,
lib,
inputs,
}: {
config,
pkgs,
...
Expand Down

0 comments on commit 3c3b08f

Please sign in to comment.