environments: added protobuf development environment

This commit is contained in:
Tigor Hutasuhut 2024-08-22 10:43:30 +07:00
parent e9b80b24f8
commit 6b3b479615
7 changed files with 67 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, profile-path, pkgs, ... }:
{ config, profile-path, ... }:
let
user = config.profile.user;
stateVersion = config.profile.system.stateVersion;
@ -10,6 +10,7 @@ in
./programs
./modules
./games
./environments
./direnv.nix
./config/ideavim
@ -43,5 +44,10 @@ in
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
mode = "0400";
};
"netrc" = {
sopsFile = ../secrets/netrc.yaml;
path = "${config.home.homeDirectory}/.netrc";
mode = "0400";
};
};
}

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./protobuf.nix
];
}

View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
let
cfg = config.profile.home.environments.protobuf;
inherit (lib) mkIf;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
buf
buf-language-server
protoc-gen-go
protoc-gen-go-grpc
protoc-gen-js
protoc-gen-connect-go
];
};
}

View file

@ -7,6 +7,7 @@
./podman.nix
./services.nix
./games.nix
./environments.nix
];
options.profile = {

11
options/environments.nix Normal file
View file

@ -0,0 +1,11 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.profile = {
home.environments = {
protobuf.enable = mkEnableOption "protobuf environments";
};
};
}

View file

@ -76,6 +76,10 @@
bruno.enable = true;
};
home.environments = {
protobuf.enable = true;
};
games.minecraft.enable = true;
};
}

21
secrets/netrc.yaml Normal file
View file

@ -0,0 +1,21 @@
netrc: ENC[AES256_GCM,data:aTCNh1OJVqIf8PrHxjR2wgejZmap43aHRCAQVmlW2voEIBbTe5UWTyT/HaEd5YUW/F3fe1bTlBExhKNKJSFAmq9cDNYb7QTrCSBOWMccfryozY7THLVrOMK9A5weI8RwNJDTYhkShsuYhGVl2Q==,iv:c3kA0peOyim68oKbEluX99FnLDBIzc9unV2SgbJj234=,tag:w7vaspE2ndSO0HAQMmQoUg==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1kruum2varzua7w5n6n52vhwyek2arc685rhcwt0u7k2jf5mecsjslkl9ll
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBrZExlc3VwOE1xYjl6YzlU
K2ZUTEV3UHA3UDNSdDFvRUg4SXc1YXVnQm1FCkNRcnBMQlFvRHNIQzBXemQ0YURi
ZTlPc3lqMlVKOXlkMnBUNTdJQ1VqUDAKLS0tIEVPS01vTWljQWpiZldFc3g0YmYv
dDE2NU5oZFZnQXV6NEZKU3dZcXBuQm8KzmHuRnb82JdMXsVBBKVof1h56fDlDxPV
vRzS1RZ6KkYFjmCDwK6TJhqJGijTFBKpXGzOcB/wvD6Dg6jK0ZR1PQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-08-22T03:40:38Z"
mac: ENC[AES256_GCM,data:558OTZqpP/YT7IRNEgHS44Nzsi1yL+dP7ekk8BYkzLLOnZd4OOwX+nppnLy6/jwOOsz/FTS/kjhKwmEnivUUt29jjCOs40A3X4ifSLFYVjLaqR0QEy+Gj4rtZM+b1w2s6gtIVek8Euy5BddU2KYrd8hhEnsEsMxGwXw6vZCmDt0=,iv:YgiUPUr7HVkfn0YPqxgVaGbRXg82aidzhF+zDaBSNmc=,tag:6S7nPeGPiCb6Hw+sS1CmCw==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.8.1