From 099666d14d5379603c3166250be8cd01f208738e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 29 Sep 2025 13:04:47 +0800 Subject: [PATCH] refactor(flake.nix): Refactor shell package lists to use `attrValues` --- flake.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 8db8076..5996dee 100644 --- a/flake.nix +++ b/flake.nix @@ -142,16 +142,16 @@ "./keys/hosts/" "./keys/users/" ]; - nativeBuildInputs = [ sops-nix.packages.${system}.sops-import-keys-hook ]; - packages = with pkgs; [ - sops-nix.packages.${system}.sops-init-gpg-key - deploy-rs.packages.${system}.default - nixpkgs-fmt - ]; + packages = nixpkgs.lib.attrValues { + inherit (sops-nix.packages.${system}) sops-import-keys-hook sops-init-gpg-key; + inherit (deploy-rs.packages.${system}) default; + }; }; - minecraft = nixpkgs.legacyPackages.${system}.mkShell { packages = [ pkgs.packwiz ]; }; + minecraft = nixpkgs.legacyPackages.${system}.mkShell { + packages = nixpkgs.lib.attrValues { inherit (nixpkgs.legacyPackages.${system}) packwiz; }; + }; }; }; }