nix/home/modules/baseline.nix
2025-09-15 02:51:04 -06:00

83 lines
1.3 KiB
Nix

{
config,
lib,
pkgs,
flakes,
...
}:
with lib; let
cfg = config.local.baseline;
in {
options.local.baseline = {
enable = mkEnableOption "Basic home settings";
};
config = mkIf cfg.enable {
programs.home-manager.enable = true;
nix.registry = {
"system".to = {
type = "path";
path = "/home/fabian/nix";
};
"nixpkgs".flake = flakes.nixpkgs;
"unstable".flake = flakes.unstable;
};
xdg = {
enable = true;
};
home = {
stateVersion = "24.05"; # DO NOT CHANGE
username = "fabian";
homeDirectory = "/home/fabian";
packages = with pkgs; [
calc
dysk
fd
file
fzf
gcc
htop
killall
man-pages
man-pages-posix
nmap
pv
ripgrep
tree
units
unzip
vim
wl-clipboard
zip
zoxide
];
keyboard = {
layout = "us";
variant = "altgr-intl";
};
sessionVariables = {
"EDITOR" = mkDefault "vim";
};
};
programs.git = {
enable = true;
userEmail = "fabian@posixlycorrect.com";
userName = "Fabian Montero";
};
local = {
services = {
zsh.enable = true;
};
programs = {
neovim.enable = true;
};
};
};
}