From 024852c8bf50c4e9b21e2f8c416df6f0f1b5bb23 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 5 May 2025 14:55:37 +0800 Subject: [PATCH] refactor(flake.nix): refactor special args to be less wordy --- flake.nix | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/flake.nix b/flake.nix index 50cbbcd..225ba66 100644 --- a/flake.nix +++ b/flake.nix @@ -7,27 +7,23 @@ let mkSystem = type: hostname: bootDisk: { name = "${hostname}"; - value = - let - args = { - inherit - self - inputs - type - hostname - bootDisk - ; - }; - in - inputs.nixpkgs.lib.nixosSystem { - specialArgs = args; - modules = [ - ./modules/nixos - ./modules/hm - ./hosts/common.nix - ./hosts/${hostname}.nix - ]; + value = inputs.nixpkgs.lib.nixosSystem { + specialArgs = { + inherit + self + inputs + type + hostname + bootDisk + ; }; + modules = [ + ./modules/nixos + ./modules/hm + ./hosts/common.nix + ./hosts/${hostname}.nix + ]; + }; }; in {