2024-07-29 12:39:54 +00:00
|
|
|
{ config, pkgs, ... }:
|
2024-03-13 10:40:31 +00:00
|
|
|
{
|
2024-05-06 11:42:46 +00:00
|
|
|
mj.base.users.email = null;
|
2024-03-13 10:40:31 +00:00
|
|
|
|
2024-05-31 06:31:54 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
#swc
|
|
|
|
#nodejs
|
|
|
|
#typescript
|
|
|
|
#concurrently
|
|
|
|
bats
|
2024-06-05 13:12:40 +00:00
|
|
|
unzip
|
2024-11-26 09:48:54 +00:00
|
|
|
rclone
|
2024-05-31 06:31:54 +00:00
|
|
|
mysql80
|
|
|
|
kubectl
|
|
|
|
kubectx
|
2024-07-30 08:52:33 +00:00
|
|
|
terraform
|
2024-11-27 12:18:51 +00:00
|
|
|
docker-compose
|
2024-05-31 06:31:54 +00:00
|
|
|
google-cloud-sdk
|
2024-07-30 08:52:33 +00:00
|
|
|
kubectl-node-shell
|
2025-02-11 14:44:44 +00:00
|
|
|
(dbt.withAdapters (adapters: [ adapters.dbt-bigquery ]))
|
2024-05-31 06:31:54 +00:00
|
|
|
];
|
2024-03-13 10:40:31 +00:00
|
|
|
|
2024-11-28 19:27:05 +00:00
|
|
|
programs._1password.enable = true;
|
|
|
|
|
2024-03-19 12:24:29 +00:00
|
|
|
services.clamav = {
|
|
|
|
updater.enable = true;
|
|
|
|
daemon = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
ScanMail = false;
|
|
|
|
ScanArchive = false;
|
|
|
|
ExcludePath = [
|
|
|
|
"^/proc"
|
|
|
|
"^/sys"
|
|
|
|
"^/dev"
|
|
|
|
"^/nix"
|
|
|
|
"^/var"
|
|
|
|
"^/home/.cache"
|
|
|
|
"^/home/.go"
|
|
|
|
"^/home/dev"
|
|
|
|
"^/home/code"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# TODO remove once 24.05 is out
|
|
|
|
systemd.services.clamav-daemon.serviceConfig = {
|
|
|
|
StateDirectory = "clamav";
|
|
|
|
RuntimeDirectory = "clamav";
|
|
|
|
User = "clamav";
|
|
|
|
Group = "clamav";
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.clamav-freshclam.serviceConfig = {
|
|
|
|
StateDirectory = "clamav";
|
|
|
|
User = "clamav";
|
|
|
|
Group = "clamav";
|
|
|
|
};
|
|
|
|
|
2024-03-13 08:01:09 +00:00
|
|
|
home-manager.users.${config.mj.username} = {
|
2024-03-26 07:13:26 +00:00
|
|
|
home.sessionVariables = {
|
2024-07-05 10:22:41 +00:00
|
|
|
GOFLAGS = "-tags=integration,cluster_integration";
|
2024-03-26 07:13:26 +00:00
|
|
|
GOPRIVATE = "github.com/chronosphereio";
|
|
|
|
BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white";
|
|
|
|
};
|
2024-03-18 07:00:58 +00:00
|
|
|
programs = {
|
2024-04-22 09:53:43 +00:00
|
|
|
git.extraConfig = {
|
|
|
|
url."git@github.com:".insteadOf = "https://github.com";
|
|
|
|
user.useConfigOnly = true;
|
|
|
|
};
|
2024-03-18 07:00:58 +00:00
|
|
|
chromium.extensions = [
|
2024-07-29 12:39:54 +00:00
|
|
|
{ id = "aeblfdkhhhdcdjpifhhbdiojplfjncoa"; } # 1password
|
|
|
|
{ id = "mdkgfdijbhbcbajcdlebbodoppgnmhab"; } # GoLinks
|
|
|
|
{ id = "kgjfgplpablkjnlkjmjdecgdpfankdle"; } # Zoom
|
2024-03-18 07:00:58 +00:00
|
|
|
];
|
2024-06-07 17:45:43 +00:00
|
|
|
bash.initExtra = ''
|
2024-06-12 05:38:26 +00:00
|
|
|
mj_ps1_extra() {
|
|
|
|
if [[ $PWD =~ $HOME/dev ]]; then
|
2024-06-12 05:40:00 +00:00
|
|
|
kubectl config view --minify -o jsonpath={.current-context}:{..namespace}
|
|
|
|
fi
|
2024-06-07 17:45:43 +00:00
|
|
|
}
|
2024-06-12 05:38:26 +00:00
|
|
|
export PS1=$(echo "$PS1" | sed 's;\\n;$(mj_ps1_extra);')
|
2024-06-07 17:45:43 +00:00
|
|
|
'';
|
2024-03-18 07:00:58 +00:00
|
|
|
};
|
2024-03-13 08:01:09 +00:00
|
|
|
};
|
2024-03-12 15:09:32 +00:00
|
|
|
}
|