refactor(flake.nix): refactor special args to be less wordy

This commit is contained in:
Mohammad Rafiq 2025-05-05 14:55:37 +08:00
parent 1a3ef0605b
commit 024852c8bf
No known key found for this signature in database

View file

@ -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
{