From e617f8fe88a0323183caa2a2c3fde04d3d10232e Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 25 Jan 2024 13:10:00 +0300 Subject: [PATCH] Nix : Setup NIX_PATH. --- .config/bash/module/Export.sh | 3 +++ .../linux/nix/desktop/{configuration.nix => Configuration.nix} | 2 +- .../{hardware-configuration.nix => HardwareConfiguration.nix} | 0 .../linux/nix/work/{configuration.nix => Configuration.nix} | 2 +- .../{hardware-configuration.nix => HardwareConfiguration.nix} | 0 5 files changed, 5 insertions(+), 2 deletions(-) rename .config/linux/nix/desktop/{configuration.nix => Configuration.nix} (95%) rename .config/linux/nix/desktop/{hardware-configuration.nix => HardwareConfiguration.nix} (100%) rename .config/linux/nix/work/{configuration.nix => Configuration.nix} (91%) rename .config/linux/nix/work/{hardware-configuration.nix => HardwareConfiguration.nix} (100%) diff --git a/.config/bash/module/Export.sh b/.config/bash/module/Export.sh index 6c07192..b5c1fd2 100644 --- a/.config/bash/module/Export.sh +++ b/.config/bash/module/Export.sh @@ -24,6 +24,9 @@ export TEXMFLOCAL="${HOME}/app/tex/data/local" # Dotfiles exports. export BASH_MODULE_PATH="${HOME}/.config/bash/module" +# Nix config. +export NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/root/.config/linux/nix/${HOSTNAME}/Configuration.nix:/nix/var/nix/profiles/per-user/root/channels" + # Set java version. Sets to latest when not specified. # Usage: export_java function export_java() { diff --git a/.config/linux/nix/desktop/configuration.nix b/.config/linux/nix/desktop/Configuration.nix similarity index 95% rename from .config/linux/nix/desktop/configuration.nix rename to .config/linux/nix/desktop/Configuration.nix index 560bdb6..463d6f6 100644 --- a/.config/linux/nix/desktop/configuration.nix +++ b/.config/linux/nix/desktop/Configuration.nix @@ -2,7 +2,7 @@ { imports = [ - ./hardware-configuration.nix + ./HardwareConfiguration.nix ../Common.nix ../PowersaveAmd.nix ../AmdGpu.nix diff --git a/.config/linux/nix/desktop/hardware-configuration.nix b/.config/linux/nix/desktop/HardwareConfiguration.nix similarity index 100% rename from .config/linux/nix/desktop/hardware-configuration.nix rename to .config/linux/nix/desktop/HardwareConfiguration.nix diff --git a/.config/linux/nix/work/configuration.nix b/.config/linux/nix/work/Configuration.nix similarity index 91% rename from .config/linux/nix/work/configuration.nix rename to .config/linux/nix/work/Configuration.nix index 7a273a1..0f4b7a3 100644 --- a/.config/linux/nix/work/configuration.nix +++ b/.config/linux/nix/work/Configuration.nix @@ -2,7 +2,7 @@ { imports = [ - ./hardware-configuration.nix + ./HardwareConfiguration.nix ./Fprint.nix ../Common.nix ../PowersaveIntel.nix diff --git a/.config/linux/nix/work/hardware-configuration.nix b/.config/linux/nix/work/HardwareConfiguration.nix similarity index 100% rename from .config/linux/nix/work/hardware-configuration.nix rename to .config/linux/nix/work/HardwareConfiguration.nix