From d913c6cc02459aef503968649945d409719f5c47 Mon Sep 17 00:00:00 2001 From: aaron Date: Sun, 28 Dec 2025 20:19:37 +0100 Subject: [PATCH] fix(home): set correct namespace for environment variable --- modules/nixos/settings.nix | 2 +- users/aaron/home.nix | 19 +++++++------------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/modules/nixos/settings.nix b/modules/nixos/settings.nix index 732b060..b7b6102 100644 --- a/modules/nixos/settings.nix +++ b/modules/nixos/settings.nix @@ -2,7 +2,7 @@ { # use flakes and nix command - nix.settings.experimental-feature = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # links /libexec from derivations to /run/current-system/sw environment.pathsToLink = [ "/libexec" ]; diff --git a/users/aaron/home.nix b/users/aaron/home.nix index f542003..f81df79 100644 --- a/users/aaron/home.nix +++ b/users/aaron/home.nix @@ -4,6 +4,13 @@ # user config home.username = "aaron"; home.homeDirectory = "/home/aaron"; + # set env vars + home.sessionVariables = { + EDITOR = "vim"; + NH_FLAKE = "/home/aaron/git/nixconfig"; + }; + # don't change + home.stateVersion = "25.11"; # nixvim config programs.nixvim = { @@ -137,20 +144,8 @@ }; }; - # set env vars - home.sessionVariables = { - EDITOR = "vim"; - }; - - # add flake env variable for nh - environment.sessionVariables = { - NH_FLAKE = "/home/aaron/git/nixconfig"; - }; - # enable syncthing for user services.syncthing.enable = true; # enable home manager programs.home-manager.enable = true; - # don't change - home.stateVersion = "25.11"; }