nix_config/home/modules/baseline.nix

60 lines
993 B
Nix
Raw Normal View History

2024-11-21 00:52:37 +01:00
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.baseline;
in {
options.local.baseline = {
enable = mkEnableOption "Basic home settings";
2024-11-21 00:52:37 +01:00
};
config = mkIf cfg.enable {
2025-01-06 05:23:56 +01:00
xdg = {
enable = true;
mimeApps = {
enable = true;
defaultApplications = {};
};
portal = {
enable = true;
xdgOpenUsePortal = true;
};
};
2024-11-21 07:38:11 +01:00
2024-11-29 01:23:37 +01:00
home = {
stateVersion = "24.05"; # DO NOT CHANGE
2024-11-29 01:23:37 +01:00
packages = with pkgs; [
calc
file
gcc
2024-11-29 01:23:37 +01:00
htop
killall
man-pages
man-pages-posix
2025-01-06 04:04:10 +01:00
pv
2024-11-29 01:23:37 +01:00
tree
units
unzip
vim
zip
];
2024-11-29 07:05:35 +01:00
keyboard = {
layout = "us";
variant = "altgr-intl";
};
sessionVariables = {
"EDITOR" = mkDefault "vim";
};
2024-11-29 01:23:37 +01:00
};
2024-11-29 08:01:35 +01:00
programs.git = {
enable = true;
userEmail = "fabian@posixlycorrect.com";
userName = "Fabian Montero";
};
2024-11-21 00:52:37 +01:00
};
}