{ description = "System flake with automatic hostname detection"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; stylix.url = "github:danth/stylix"; stylix.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, ... }@inputs: let system = "x86_64-linux"; hostname = builtins.getEnv "HOSTNAME"; in { nixosConfigurations = { "${hostname}" = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs; }; modules = [ ./common.nix ./${hostname}/configuration.nix ./${hostname}/hardware-configuration.nix inputs.stylix.nixosModules.stylix ]; }; }; }; }