config/shared/work/default.nix

89 lines
2.0 KiB
Nix

{
config,
pkgs,
...
}: {
mj.base.users.email = null;
mj.base.users.user.extraGroups = ["docker"];
environment.systemPackages = with pkgs; [
#swc
#nodejs
#typescript
#concurrently
bats
unzip
mysql80
kubectl
kubectl-node-shell
kubectx
google-cloud-sdk
];
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";
};
virtualisation.podman = {
dockerCompat = true;
dockerSocket.enable = true;
};
home-manager.users.${config.mj.username} = {
home.sessionVariables = {
GOFLAGS = "-tags=cluster_integration";
GOPRIVATE = "github.com/chronosphereio";
CONTAINER_HOST = "unix://run/podman/podman.sock";
BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white";
};
programs = {
git.extraConfig = {
url."git@github.com:".insteadOf = "https://github.com";
user.useConfigOnly = true;
};
chromium.extensions = [
{id = "aeblfdkhhhdcdjpifhhbdiojplfjncoa";} # 1password
{id = "mdkgfdijbhbcbajcdlebbodoppgnmhab";} # GoLinks
{id = "kgjfgplpablkjnlkjmjdecgdpfankdle";} # Zoom
];
bash.initExtra = ''
hm_ps1_extra() {
eval "''${MJ_PS1_EXTRA:-}"
}
export PS1=$(echo "$PS1" | sed 's;\\n;$(hm_ps1_extra);')
'';
};
};
}