config/shared/work/default.nix

91 lines
2.1 KiB
Nix
Raw Normal View History

2024-03-13 12:40:31 +02:00
{
config,
pkgs,
...
}: {
2024-05-06 14:42:46 +03:00
mj.base.users.email = null;
2024-03-13 12:43:45 +02:00
mj.base.users.user.extraGroups = ["docker"];
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-05-31 09:31:54 +03:00
mysql80
kubectl
kubectl-node-shell
kubectx
google-cloud-sdk
];
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-05-21 09:24:33 +03:00
virtualisation.podman = {
dockerCompat = true;
dockerSocket.enable = true;
};
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-04-19 11:11:08 +03:00
GOFLAGS = "-tags=cluster_integration";
2024-03-26 09:13:26 +02:00
GOPRIVATE = "github.com/chronosphereio";
2024-05-21 09:24:33 +03:00
CONTAINER_HOST = "unix://run/podman/podman.sock";
2024-03-26 09:13:26 +02:00
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 = [
{id = "aeblfdkhhhdcdjpifhhbdiojplfjncoa";} # 1password
{id = "mdkgfdijbhbcbajcdlebbodoppgnmhab";} # GoLinks
{id = "kgjfgplpablkjnlkjmjdecgdpfankdle";} # Zoom
];
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
}