dotfiles-nix/nix/systems/main/base/packages.nix
2023-11-09 09:38:02 +01:00

79 lines
1.7 KiB
Nix

{ pkgs, inputs, flake_path, ... }:
{
# List packages installed in system profile
environment = {
systemPackages = with pkgs; [
age
curl
gcc
git
gnome.file-roller
pulseaudio
unzip
wireplumber
wget
wl-clipboard
zip
inputs.home-manager.packages.${pkgs.system}.home-manager
];
variables = { EDITOR = "nvim"; };
pathsToLink = [ "/share/zsh" ];
};
hardware.opengl = {
enable = true;
# Vulkan
driSupport = true;
driSupport32Bit = true;
# VA-API
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
nvidia-vaapi-driver
];
};
# Programs
programs = {
dconf.enable = true;
direnv.enable = true;
hyprland.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [
xfconf
thunar-volman
thunar-archive-plugin
thunar-media-tags-plugin
];
};
zsh = {
enable = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
autosuggestions.enable = true;
setOptions = ["PROMPT_SUBST" "appendhistory"];
shellAliases = {
ga = "git add";
gs = "git status";
gb = "git branch";
gm = "git merge";
gpl = "git pull";
gplo = "git pull origin";
gps = "git push";
gpso = "git push origin";
gc = "git commit";
gcm = "git commit -m";
gch = "git checkout";
gchb = "git checkout -b";
gcoe = "git config user.email";
gcon = "git config user.name";
all-switch = "nix-switch && home-switch";
all-update = "nix flake update ${flake_path}# && all-switch";
};
};
};
}