From d14c5e57db4bcfceba5633e7507672501971a9d5 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 29 Dec 2024 18:47:22 +0100 Subject: [PATCH] nixos: use attrset for long function args --- flake.nix | 2 +- flake/modules/nixos.nix | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index d6e700aa..c4814296 100644 --- a/flake.nix +++ b/flake.nix @@ -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 '' diff --git a/flake/modules/nixos.nix b/flake/modules/nixos.nix index b53d4fc9..ecc173a1 100644 --- a/flake/modules/nixos.nix +++ b/flake/modules/nixos.nix @@ -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;