config/shared/work/default.nix

84 lines
1.9 KiB
Nix
Raw Normal View History

2024-07-29 15:39:54 +03:00
{ config, pkgs, ... }:
2024-03-13 12:40:31 +02:00
{
2024-05-06 14:42:46 +03:00
mj.base.users.email = null;
2024-03-13 12:40:31 +02:00
2024-05-31 09:31:54 +03:00
environment.systemPackages = with pkgs; [
#swc
#nodejs
#typescript
#concurrently
bats
2024-06-05 16:12:40 +03:00
unzip
2024-11-26 11:48:54 +02:00
rclone
2024-08-29 11:41:05 +03:00
zoom-us
2024-05-31 09:31:54 +03:00
mysql80
kubectl
kubectx
2024-07-30 11:52:33 +03:00
terraform
2024-05-31 09:31:54 +03:00
google-cloud-sdk
2024-07-30 11:52:33 +03:00
kubectl-node-shell
2024-05-31 09:31:54 +03:00
];
2024-03-13 12:40:31 +02:00
2024-03-19 14:24:29 +02: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 10:01:09 +02:00
home-manager.users.${config.mj.username} = {
2024-03-26 09:13:26 +02:00
home.sessionVariables = {
2024-07-05 13:22:41 +03:00
GOFLAGS = "-tags=integration,cluster_integration";
2024-03-26 09:13:26 +02:00
GOPRIVATE = "github.com/chronosphereio";
BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white";
};
2024-03-18 09:00:58 +02:00
programs = {
2024-04-22 12:53:43 +03:00
git.extraConfig = {
url."git@github.com:".insteadOf = "https://github.com";
user.useConfigOnly = true;
};
2024-03-18 09:00:58 +02:00
chromium.extensions = [
2024-07-29 15:39:54 +03:00
{ id = "aeblfdkhhhdcdjpifhhbdiojplfjncoa"; } # 1password
{ id = "mdkgfdijbhbcbajcdlebbodoppgnmhab"; } # GoLinks
{ id = "kgjfgplpablkjnlkjmjdecgdpfankdle"; } # Zoom
2024-03-18 09:00:58 +02:00
];
2024-06-07 20:45:43 +03:00
bash.initExtra = ''
2024-06-12 08:38:26 +03:00
mj_ps1_extra() {
if [[ $PWD =~ $HOME/dev ]]; then
2024-06-12 08:40:00 +03:00
kubectl config view --minify -o jsonpath={.current-context}:{..namespace}
fi
2024-06-07 20:45:43 +03:00
}
2024-06-12 08:38:26 +03:00
export PS1=$(echo "$PS1" | sed 's;\\n;$(mj_ps1_extra);')
2024-06-07 20:45:43 +03:00
'';
2024-03-18 09:00:58 +02:00
};
2024-03-13 10:01:09 +02:00
};
2024-03-12 17:09:32 +02:00
}