added env vars
This commit is contained in:
parent
c2901667b0
commit
abfcef398b
7 changed files with 15 additions and 10 deletions
|
@ -8,6 +8,7 @@
|
|||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./desktop-hardware-config.nix
|
||||
./env.nix
|
||||
];
|
||||
|
||||
# Enable nix flakes
|
||||
|
@ -117,7 +118,7 @@
|
|||
isNormalUser = true;
|
||||
description = "twoneis";
|
||||
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
|
||||
|
@ -125,7 +126,7 @@
|
|||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ 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
|
||||
# started in user sessions.
|
||||
|
|
9
base-system/env.nix
Normal file
9
base-system/env.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
environment.sessionVariables = {
|
||||
EDITOR = "hx";
|
||||
SUDO_EDITOR = "hx";
|
||||
VISUAL = "hx";
|
||||
};
|
||||
}
|
|
@ -5,12 +5,6 @@
|
|||
home.username = "twoneis";
|
||||
home.homeDirectory = "/home/twoneis";
|
||||
|
||||
systemd.user.sessionVariables = {
|
||||
EDITOR = "hx";
|
||||
SUDO_EDITOR = "hx";
|
||||
VISUAL = "hx";
|
||||
};
|
||||
|
||||
programs = {
|
||||
home-manager = {
|
||||
enable = true;
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./surface-hardware-config.nix
|
||||
./env.nix
|
||||
];
|
||||
|
||||
# Enable nix flakes
|
||||
|
@ -105,7 +106,7 @@
|
|||
isNormalUser = true;
|
||||
description = "twoneis";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = import ./user-core-packages.nix pkgs;
|
||||
packages = import ./packages/user-core-packages.nix pkgs;
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
|
@ -113,7 +114,7 @@
|
|||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ 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
|
||||
# started in user sessions.
|
||||
|
|
Loading…
Add table
Reference in a new issue