added env vars

This commit is contained in:
twoneis 2023-11-03 05:08:55 +01:00
parent c2901667b0
commit abfcef398b
7 changed files with 15 additions and 10 deletions

View file

@ -8,6 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./desktop-hardware-config.nix ./desktop-hardware-config.nix
./env.nix
]; ];
# Enable nix flakes # Enable nix flakes
@ -117,7 +118,7 @@
isNormalUser = true; isNormalUser = true;
description = "twoneis"; description = "twoneis";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
packages = import ./user-core-packages.nix pkgs ++ import ./user-game-packages.nix pkgs; packages = import ./packages/user-core-packages.nix pkgs ++ import ./packages/user-game-packages.nix pkgs;
}; };
# Allow unfree packages # Allow unfree packages
@ -125,7 +126,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = import ./system-packages.nix pkgs; environment.systemPackages = import ./packages/system-packages.nix pkgs;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

9
base-system/env.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
environment.sessionVariables = {
EDITOR = "hx";
SUDO_EDITOR = "hx";
VISUAL = "hx";
};
}

View file

@ -5,12 +5,6 @@
home.username = "twoneis"; home.username = "twoneis";
home.homeDirectory = "/home/twoneis"; home.homeDirectory = "/home/twoneis";
systemd.user.sessionVariables = {
EDITOR = "hx";
SUDO_EDITOR = "hx";
VISUAL = "hx";
};
programs = { programs = {
home-manager = { home-manager = {
enable = true; enable = true;

View file

@ -8,6 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./surface-hardware-config.nix ./surface-hardware-config.nix
./env.nix
]; ];
# Enable nix flakes # Enable nix flakes
@ -105,7 +106,7 @@
isNormalUser = true; isNormalUser = true;
description = "twoneis"; description = "twoneis";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
packages = import ./user-core-packages.nix pkgs; packages = import ./packages/user-core-packages.nix pkgs;
}; };
# Allow unfree packages # Allow unfree packages
@ -113,7 +114,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = import ./system-packages.nix pkgs; environment.systemPackages = import ./packages/system-packages.nix pkgs;
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.