mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:49:42 +00:00
Add various environment settings
This commit is contained in:
parent
801030ec1b
commit
a513b807f4
|
@ -4,6 +4,7 @@ _: {
|
|||
./boot
|
||||
./services
|
||||
./nix
|
||||
./environment
|
||||
./impermanence
|
||||
./programs.nix
|
||||
./system.nix
|
||||
|
|
7
system/environment/default.nix
Normal file
7
system/environment/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./packages.nix
|
||||
./paths.nix
|
||||
./variables.nix
|
||||
];
|
||||
}
|
11
system/environment/packages.nix
Normal file
11
system/environment/packages.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl
|
||||
wget
|
||||
pciutils
|
||||
lshw
|
||||
man-pages
|
||||
rsync
|
||||
bind.dnsutils
|
||||
];
|
||||
}
|
9
system/environment/paths.nix
Normal file
9
system/environment/paths.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
# enable completions for system packages
|
||||
# and other stuff
|
||||
environment.pathsToLink = [
|
||||
"/share/zsh" # zsh completions
|
||||
"/share/bash-completion" # bash completions
|
||||
"/share/nix-direnv" # direnv completions
|
||||
];
|
||||
}
|
15
system/environment/variables.nix
Normal file
15
system/environment/variables.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
# variables that I want to set globally on all systems
|
||||
|
||||
environment.variables = {
|
||||
# editors
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
SUDO_EDITOR = "nvim";
|
||||
|
||||
# pager stuff
|
||||
SYSTEMD_PAGERSECURE = "true";
|
||||
PAGER = "less -FR";
|
||||
MANPAGER = "nvim +Man!";
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{
|
||||
|
||||
# Install an actually usable system-wide editor
|
||||
programs.neovim = {
|
||||
|
@ -7,14 +7,4 @@
|
|||
vimAlias = true;
|
||||
viAlias = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl
|
||||
wget
|
||||
pciutils
|
||||
lshw
|
||||
man-pages
|
||||
rsync
|
||||
bind.dnsutils
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue