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,9 +7,8 @@
let
mkSystem = type: hostname: bootDisk: {
name = "${hostname}";
value =
let
args = {
value = inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
inherit
self
inputs
@ -18,9 +17,6 @@
bootDisk
;
};
in
inputs.nixpkgs.lib.nixosSystem {
specialArgs = args;
modules = [
./modules/nixos
./modules/hm