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