2024-07-29 12:39:54 +00:00
|
|
|
{ config, pkgs, ... }:
|
2024-03-13 10:40:31 +00:00
|
|
|
{
|
2024-05-06 11:42:46 +00:00
|
|
|
mj.base.users.email = null;
|
2024-03-13 10:40:31 +00:00
|
|
|
|
2025-02-12 13:11:01 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
#swc
|
|
|
|
#nodejs
|
|
|
|
#typescript
|
|
|
|
#concurrently
|
|
|
|
bats
|
|
|
|
unzip
|
|
|
|
rclone
|
|
|
|
mysql80
|
|
|
|
kubectl
|
|
|
|
kubectx
|
|
|
|
docker-compose
|
|
|
|
google-cloud-sdk
|
|
|
|
kubectl-node-shell
|
2025-02-26 11:36:00 +00:00
|
|
|
|
|
|
|
(pkgs.terraform.withPlugins (_: [
|
|
|
|
(pkgs.terraform-providers.mkProvider {
|
|
|
|
owner = "chronosphereio";
|
|
|
|
repo = "terraform-provider-chronosphere";
|
|
|
|
spdx = "Apache-2.0";
|
|
|
|
rev = "v1.7.0";
|
|
|
|
hash = "sha256-BfVR/1wf6YH7mc7kXPjk2cI8u3/k0Zi8+Xu7Kg6AN80=";
|
|
|
|
vendorHash = "sha256-UxoFbiQa5RgNI90oUy4twembgA8jseeu6Hc/9KTwJKA=";
|
|
|
|
homepage = "https://registry.terraform.io/providers/chronosphereio/chronosphere";
|
|
|
|
})
|
|
|
|
]))
|
2025-02-12 13:11:01 +00:00
|
|
|
];
|
2024-03-13 10:40:31 +00:00
|
|
|
|
2024-11-28 19:27:05 +00:00
|
|
|
programs._1password.enable = true;
|
|
|
|
|
2024-03-19 12:24:29 +00: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 08:01:09 +00:00
|
|
|
home-manager.users.${config.mj.username} = {
|
2024-03-26 07:13:26 +00:00
|
|
|
home.sessionVariables = {
|
2024-07-05 10:22:41 +00:00
|
|
|
GOFLAGS = "-tags=integration,cluster_integration";
|
2024-03-26 07:13:26 +00:00
|
|
|
GOPRIVATE = "github.com/chronosphereio";
|
|
|
|
BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white";
|
|
|
|
};
|
2024-03-18 07:00:58 +00:00
|
|
|
programs = {
|
2024-04-22 09:53:43 +00:00
|
|
|
git.extraConfig = {
|
|
|
|
url."git@github.com:".insteadOf = "https://github.com";
|
|
|
|
user.useConfigOnly = true;
|
|
|
|
};
|
2024-03-18 07:00:58 +00:00
|
|
|
chromium.extensions = [
|
2024-07-29 12:39:54 +00:00
|
|
|
{ id = "aeblfdkhhhdcdjpifhhbdiojplfjncoa"; } # 1password
|
|
|
|
{ id = "mdkgfdijbhbcbajcdlebbodoppgnmhab"; } # GoLinks
|
|
|
|
{ id = "kgjfgplpablkjnlkjmjdecgdpfankdle"; } # Zoom
|
2024-03-18 07:00:58 +00:00
|
|
|
];
|
2024-06-07 17:45:43 +00:00
|
|
|
bash.initExtra = ''
|
2024-06-12 05:38:26 +00:00
|
|
|
mj_ps1_extra() {
|
|
|
|
if [[ $PWD =~ $HOME/dev ]]; then
|
2024-06-12 05:40:00 +00:00
|
|
|
kubectl config view --minify -o jsonpath={.current-context}:{..namespace}
|
|
|
|
fi
|
2024-06-07 17:45:43 +00:00
|
|
|
}
|
2024-06-12 05:38:26 +00:00
|
|
|
export PS1=$(echo "$PS1" | sed 's;\\n;$(mj_ps1_extra);')
|
2024-06-07 17:45:43 +00:00
|
|
|
'';
|
2024-03-18 07:00:58 +00:00
|
|
|
};
|
2024-03-13 08:01:09 +00:00
|
|
|
};
|
2024-03-12 15:09:32 +00:00
|
|
|
}
|