nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 41137ea5afc255eff347684888bd067f29853ee4
parent 84e6b9e3129ddc8d5ab8ba47bc825cd0a7817c0d
Author: Toni Brown <me@tb148.net>
Date:   Fri, 20 Mar 2026 21:06:17 +0800

move certain env variables to homemanager config

Diffstat:
Mconfig.nu | 3---
Mhome.nix | 6++++++
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/config.nu b/config.nu @@ -20,8 +20,5 @@ $env.config.completions.external = { $env.TRANSIENT_PROMPT_COMMAND = ^starship module character $env.TRANSIENT_PROMPT_MULTILINE_INDICATOR = " " -$env.EDITOR = 'hx' -$env.SHELL = 'nu' -$env.UID = $'(id -u)' alias zed = zeditor alias zn = zeditor -n diff --git a/home.nix b/home.nix @@ -16,6 +16,12 @@ home.file.".face.icon".source = ./avatar.png; home.file."${config.xdg.userDirs.pictures}/wallpaper.png".source = ./wallpaper.png; + home.sessionVariables = { + EDITOR = "hx"; + SHELL = "nu"; + UID = "${config.home.uid}"; + }; + xdg.userDirs = { enable = true; createDirectories = true;