nix_config/home/modules/baseline.nix
2025-01-05 22:23:56 -06:00

60 lines
993 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.baseline;
in {
options.local.baseline = {
enable = mkEnableOption "Basic home settings";
};
config = mkIf cfg.enable {
xdg = {
enable = true;
mimeApps = {
enable = true;
defaultApplications = {};
};
portal = {
enable = true;
xdgOpenUsePortal = true;
};
};
home = {
stateVersion = "24.05"; # DO NOT CHANGE
packages = with pkgs; [
calc
file
gcc
htop
killall
man-pages
man-pages-posix
pv
tree
units
unzip
vim
zip
];
keyboard = {
layout = "us";
variant = "altgr-intl";
};
sessionVariables = {
"EDITOR" = mkDefault "vim";
};
};
programs.git = {
enable = true;
userEmail = "fabian@posixlycorrect.com";
userName = "Fabian Montero";
};
};
}