config/shared/work/default.nix

86 lines
1.9 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-03-13 14:02:36 +02:00
environment.systemPackages =
(with pkgs; [
2024-03-14 11:17:35 +02:00
#swc
#nodejs
#typescript
#concurrently
2024-03-25 15:46:14 +02:00
bats
2024-05-20 16:57:34 +03:00
mysql80
2024-03-15 15:47:26 +02:00
kubectl
2024-03-26 13:20:18 +02:00
kubectl-node-shell
2024-03-15 16:04:52 +02:00
kubectx
2024-03-13 14:02:36 +02:00
google-cloud-sdk
])
2024-03-13 14:05:52 +02:00
++ (with pkgs.pkgs-unstable; [
2024-03-14 11:17:35 +02:00
#turbo
2024-03-13 14:02:36 +02: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-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-03-13 10:01:09 +02:00
};
2024-03-12 17:09:32 +02:00
}