config/shared/work/default.nix

76 lines
1.7 KiB
Nix

{
config,
pkgs,
...
}: {
mj.base.users.email = "motiejus.jakstys@chronosphere.io";
mj.base.users.user.extraGroups = ["docker"];
environment.systemPackages =
(with pkgs; [
#swc
#nodejs
#typescript
#concurrently
bats
kubectl
kubectx
google-cloud-sdk
])
++ (with pkgs.pkgs-unstable; [
#turbo
]);
virtualisation.docker.enable = true;
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";
};
home-manager.users.${config.mj.username} = {
home.sessionVariables = {
GOPRIVATE = "github.com/chronosphereio";
BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white";
};
programs = {
git.extraConfig.url."git@github.com:".insteadOf = "https://github.com";
chromium.extensions = [
{id = "aeblfdkhhhdcdjpifhhbdiojplfjncoa";} # 1password
{id = "mdkgfdijbhbcbajcdlebbodoppgnmhab";} # GoLinks
{id = "kgjfgplpablkjnlkjmjdecgdpfankdle";} # Zoom
];
};
};
}