# Aider chat conversation:
USER: I'm a bit concerned about setting the hostname in `nixos/configuration.nix` , as I want to use the same basic configuration for all of my devices
ASSISTANT: I understand your concern. You can use a variable for the hostname in `nixos/configuration.nix` and pass it in from the `flake.nix` file when defining the `nixosConfigurations`. This way, you can have the same default `nixos/configuration.nix` for every system and just change the hostname for each system in the `flake.nix` file.
Here are the *SEARCH/REPLACE* blocks:
flake.nix
```nix
<<<<<<< SEARCH
athame = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
=======
athame = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs; hostname = "athame";};
>>>>>>> REPLACE
```
flake.nix
```nix
<<<<<<< SEARCH
metatron = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
=======
metatron = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs; hostname = "metatron";};
>>>>>>> REPLACE
```
nixos/configuration.nix
```nix
<<<<<<< SEARCH
networking.hostName = "your-hostname";
=======
networking.hostName = inputs.hostname;
>>>>>>> REPLACE
```
This will replace the hardcoded hostname in `nixos/configuration.nix` with a reference to the hostname defined in the `flake.nix` file.