Files
nixos/home/hosts/gregory.hellings-mbp/default.nix

102 lines
1.9 KiB
Nix

{
pkgs,
pkgs',
lib,
username,
...
}:
{
# Disables hitting local cache
_module.args.cache = lib.mkForce false;
greg = {
development = true;
gui = true;
nix.cache = false;
vscodium = false;
};
home = {
packages = with pkgs; [
ansible
claude-code
direnv
home-manager
pkgs'.dockerCompat
python3Packages.ipython
just
glab
go
gopls
mariadb
nixVersions.stable
pre-commit
python311
python3Packages.flake8
twine
];
file = {
".pip/pip.conf".text = ''
[global]
retries = 1
index-url = https://pypi.python.org/
extra-index-url =
https://pypidev.ivrtechnology.com/
'';
".config/uv/uv.toml".text = ''
index-strategy = "unsafe-first-match"
[[index]]
url = "https://pypidev.ivrtechnology.com/"
name = "pypidev"
ignore-error-codes = [403]
'';
};
sessionVariables = {
BW_GITLAB_ITEM = "7d3da4e9-5f9a-49d0-8e14-b39c010a4001";
BW_ANTHROPIC_ITEM = "e122fd08-3506-4f21-9c6a-b42b00fe5be1";
};
username = username;
homeDirectory = "/Users/${username}";
};
programs = {
direnv = {
enable = true;
enableNushellIntegration = true;
};
nushell = {
enable = true;
};
starship = {
enable = true;
enableNushellIntegration = true;
settings = {
directory = {
home_symbol = "~";
truncate_to_repo = false;
truncation_length = 0;
use_os_path_sep = true;
};
};
};
ssh.matchBlocks = lib.listToAttrs (
lib.map
(key: {
name = "${key}.ivrtechnology.com";
value = { };
})
[
"apidev1"
"asdev1"
"agidev1"
"kdev1"
"kdev2"
"kdev3"
"webdev4"
"webdev5"
"web4"
]
);
};
}