Files
configs/nixos/common-configuration.nix

137 lines
2.2 KiB
Nix

# This file contains the config shared across different devices.
{ config, pkgs, ... }:
{
# Set your time zone.
time.timeZone = "Europe/Madrid";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "es_ES.UTF-8";
LC_IDENTIFICATION = "es_ES.UTF-8";
LC_MEASUREMENT = "es_ES.UTF-8";
LC_MONETARY = "es_ES.UTF-8";
LC_NAME = "es_ES.UTF-8";
LC_NUMERIC = "es_ES.UTF-8";
LC_PAPER = "es_ES.UTF-8";
LC_TELEPHONE = "es_ES.UTF-8";
LC_TIME = "es_ES.UTF-8";
};
environment.systemPackages = with pkgs; [
# utilities
wget
tmux
git
delta
tig
mosh
bat
ripgrep
fzf
screenfetch
htop
jq
keynav
unzip
gnutar
xorg.xmodmap # keyboard remapping
xfce.xfce4-screenshooter
# code editors
vim
neovim
vimHugeX # to make clipboard work in vim
xclip # to make clipboard work in neovim
# terminals
alacritty
kitty
# pdf
zathura
mate.atril
# file explorers/managers
lf
yazi
xfce.thunar
xfce.xfconf # needed to save preferences of thunar
xfce.ristretto
xfce.tumbler # for thumbnails of imgs
# media
pavucontrol
mpv
vlc
feh
kolourpaint
calibre
# browsers
firefox
qutebrowser
chromium
# languages
#texlive.combined.scheme-medium # includes latexmk
#texlivePackages.minted
pgf-umlsd # latex diagrams
pgf
(pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-medium # includes latexmk
minted # syntax highligting
pgf
;
})
#gcc
clang
clang-tools
pkg-config
openssl
stdenv
rustup
wabt # wasm binary toolkit
wasmedge # to execute wasm binaries
sage
go
(python3.withPackages(ps: with ps; [
matplotlib numpy
]))
pipx
nodejs
];
environment.variables = {
LIBCLANG_PATH = "${pkgs.llvmPackages_17.libclang.lib}/lib";
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
OPENSSL_DIR = "${pkgs.openssl.dev}";
};
fonts.packages = with pkgs; [
dina-font
proggyfonts
terminus_font
fira-code
liberation_ttf
noto-fonts
tamsyn
termsyn
gohufont
];
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [zsh];
xdg.mime.enable=true;
xdg.mime.defaultApplications = {
"application/pdf" = "zathura";
};
}