From 7dd6913f082a323e3d0f0111f4ce2afe90ae931d Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:54:25 -0500 Subject: [PATCH] add hostname envvar --- boxes/desktop/configuration.nix | 46 +++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/boxes/desktop/configuration.nix b/boxes/desktop/configuration.nix index 405f959..68b9413 100644 --- a/boxes/desktop/configuration.nix +++ b/boxes/desktop/configuration.nix @@ -1,25 +1,29 @@ # 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 = - [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - ../../common/systemModules/boot.nix - ../../common/systemModules/folding.nix - ../../common/systemModules/kernel.nix - ../../common/systemModules/audio.nix - ../../common/systemModules/kde.nix - ../../common/systemModules/tailscale.nix - ../../common/systemModules/gaming.nix - ../../common/systemModules/crypt.nix - ../../common/systemModules/printing.nix - ../../common/systemModules/stylix.nix - # USERS - ../../common/users/meyer - ]; + config, + pkgs, + inputs, + ... +}: +{ + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ../../common/systemModules/boot.nix + ../../common/systemModules/folding.nix + ../../common/systemModules/kernel.nix + ../../common/systemModules/audio.nix + ../../common/systemModules/kde.nix + ../../common/systemModules/tailscale.nix + ../../common/systemModules/gaming.nix + ../../common/systemModules/crypt.nix + ../../common/systemModules/printing.nix + ../../common/systemModules/stylix.nix + # USERS + ../../common/users/meyer + ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems; hardware.i2c.enable = true; @@ -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"