Move the environment variables to the sessionVariables
This commit is contained in:
parent
3d55d681a9
commit
65ac41b718
|
@ -2,31 +2,40 @@
|
|||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = custom.username;
|
||||
home.homeDirectory = "/home/${custom.username}";
|
||||
home.stateVersion = custom.version;
|
||||
programs.home-manager.enable = true;
|
||||
home.shellAliases = {
|
||||
format-modules = "nixpkgs-fmt **/*.nix";
|
||||
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
|
||||
rebuild = ''
|
||||
nixos-rebuild -j auto switch --use-remote-sudo
|
||||
'';
|
||||
find-garbage = "ls -l /nix/var/nix/gcroots/auto/ | sort";
|
||||
vm = "vim";
|
||||
less = "less -FiRX";
|
||||
ls = "ls -lhF";
|
||||
home = {
|
||||
username = custom.username;
|
||||
homeDirectory = "/home/${custom.username}";
|
||||
stateVersion = custom.version;
|
||||
sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
HIGHLIGHT_STYLE = "solarized-light";
|
||||
HISTTIMEFORMAT = "%F %T ";
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
format-modules = "nixpkgs-fmt **/*.nix";
|
||||
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
|
||||
rebuild = ''
|
||||
nixos-rebuild -j auto switch --use-remote-sudo
|
||||
'';
|
||||
find-garbage = "ls -l /nix/var/nix/gcroots/auto/ | sort";
|
||||
vm = "vim";
|
||||
less = "less -FiRX";
|
||||
ls = "ls -lhF";
|
||||
};
|
||||
packages = with pkgs; [
|
||||
git
|
||||
highlight
|
||||
htop
|
||||
killall
|
||||
ncdu
|
||||
nixpkgs-fmt
|
||||
nmon
|
||||
tree
|
||||
unzip
|
||||
wget
|
||||
];
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
highlight
|
||||
htop
|
||||
killall
|
||||
ncdu
|
||||
nixpkgs-fmt
|
||||
nmon
|
||||
tree
|
||||
unzip
|
||||
wget
|
||||
];
|
||||
}
|
||||
|
|
|
@ -110,13 +110,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "vim";
|
||||
HIGHLIGHT_STYLE = "solarized-light";
|
||||
HISTTIMEFORMAT = "%F %T ";
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
};
|
||||
|
||||
security.sudo = {
|
||||
extraRules = [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue