flake: use listFilesRecursive for nixosSystem modules

This commit is contained in:
Donovan Glover 2024-10-11 15:02:01 -04:00
parent 35e390902a
commit 4d751d3d12
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -76,21 +76,13 @@
nixos = nixosSystem {
system = "x86_64-linux";
specialArgs.nix-config = self;
modules = [
./hosts/laptop/configuration.nix
./hosts/laptop/hardware-configuration.nix
];
modules = listFilesRecursive ./hosts/laptop;
};
mobile-nixos = nixosSystem {
system = "aarch64-linux";
specialArgs.nix-config = self;
modules = [
./hosts/phone/configuration.nix
./hosts/phone/hardware-configuration.nix
];
modules = listFilesRecursive ./hosts/phone;
};
};