alqueva/hosts/micronix/users.nix
2024-12-12 20:41:29 -03:00

102 lines
1.8 KiB
Nix

{pkgs, ...}: {
alqueva.users.xmm = {
packages = builtins.attrValues {
inherit
(pkgs)
wget2
fastfetch
btop-rocm
emacs30-pgtk
kitty
firefox_nightly
ffmpeg-full
vesktop
spotify
noto-fonts
noto-fonts-lgc-plus
noto-fonts-cjk-sans
noto-fonts-cjk-serif
fuzzel
fzf
cmake
gnumake
ninja
meson
python313
libtool
gnome-keyring
pavucontrol
pulseaudio
;
inherit
(pkgs.llvmPackages_19)
libcxxClang
clangUseLLVM
clang-tools
clang-manpages
openmp
;
inherit
(pkgs.emacsPackages)
tree-sitter
tsc
tree-sitter-langs
;
};
groups = [
"users"
"wheel"
"video"
"audio"
"networkmanager"
"input"
"libvirtd"
];
};
services.emacs = {
enable = true;
package = pkgs.emacs30-pgtk;
defaultEditor = true;
startWithGraphical = true;
};
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [zsh];
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions = {
enable = true;
strategy = ["completion"];
};
zsh-autoenv = {
enable = true;
};
syntaxHighlighting = {
enable = true;
highlighters = ["main" "brackets" "pattern" "cursor" "regexp" "root" "line"];
};
shellAliases = {
ll = "ls -l";
update = "sudo nixos-rebuild switch --upgrade";
};
ohMyZsh = {
enable = true;
plugins = ["git" "direnv" "fzf"];
theme = "half-life";
};
};
# DirEnv support
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv = {
enable = true;
};
};
}