hosts/default.nix: cleanup

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit d3ad51f43c

View file

@ -27,17 +27,17 @@ inputs: let
modules = concatLists [
# This is used to pre-emptively set the hostPlatform for nixpkgs.
# Also, we set the system hostname here.
[
# self.nixosModules.user
]
(singleton {
networking.hostName = hostname;
nixpkgs.hostPlatform = system;
})
(flatten (
concatLists [
# configuration for the host, passed as an argument.
(singleton ./${hostname}/default.nix)
# common configuration, which all hosts share.
(singleton ./common.nix)
# Import all files called module.nix from my modules directory.
(
filter (hasSuffix "module.nix") (
map toString (listFilesRecursive ../modules)