add hostname envvar

This commit is contained in:
sadan 2024-12-18 18:54:25 -05:00
parent 5724c6efad
commit 7dd6913f08
No known key found for this signature in database

View file

@ -1,10 +1,14 @@
# Edit this configuration file to define what should be installed onconfiguraticonfig
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{config, pkgs, inputs, ...}:
{
imports =
[
config,
pkgs,
inputs,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../../common/systemModules/boot.nix
@ -27,10 +31,14 @@
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.bluetooth.enable = true;
networking.hostName = "nix-desktop-evo4b5"; # Define your hostname.
environment.sessionVariables = {
HOSTNAME = config.networking.hostName;
};
# Set your time zone.
time.timeZone = "America/New_York";
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [
"nix-command"