Add various environment settings

This commit is contained in:
ItsDrike 2024-04-13 18:04:37 +02:00
parent 801030ec1b
commit a513b807f4
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
6 changed files with 44 additions and 11 deletions

View file

@ -4,6 +4,7 @@ _: {
./boot
./services
./nix
./environment
./impermanence
./programs.nix
./system.nix

View file

@ -0,0 +1,7 @@
{
imports = [
./packages.nix
./paths.nix
./variables.nix
];
}

View file

@ -0,0 +1,11 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
curl
wget
pciutils
lshw
man-pages
rsync
bind.dnsutils
];
}

View 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
];
}

View 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!";
};
}

View file

@ -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
];
}