environments: added protobuf development environment
This commit is contained in:
parent
e9b80b24f8
commit
6b3b479615
|
@ -1,4 +1,4 @@
|
||||||
{ config, profile-path, pkgs, ... }:
|
{ config, profile-path, ... }:
|
||||||
let
|
let
|
||||||
user = config.profile.user;
|
user = config.profile.user;
|
||||||
stateVersion = config.profile.system.stateVersion;
|
stateVersion = config.profile.system.stateVersion;
|
||||||
|
@ -10,6 +10,7 @@ in
|
||||||
./programs
|
./programs
|
||||||
./modules
|
./modules
|
||||||
./games
|
./games
|
||||||
|
./environments
|
||||||
|
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./config/ideavim
|
./config/ideavim
|
||||||
|
@ -43,5 +44,10 @@ in
|
||||||
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
};
|
};
|
||||||
|
"netrc" = {
|
||||||
|
sopsFile = ../secrets/netrc.yaml;
|
||||||
|
path = "${config.home.homeDirectory}/.netrc";
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
6
home/environments/default.nix
Normal file
6
home/environments/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./protobuf.nix
|
||||||
|
];
|
||||||
|
}
|
17
home/environments/protobuf.nix
Normal file
17
home/environments/protobuf.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
./podman.nix
|
./podman.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./games.nix
|
./games.nix
|
||||||
|
./environments.nix
|
||||||
];
|
];
|
||||||
options.profile = {
|
options.profile = {
|
||||||
|
|
||||||
|
|
11
options/environments.nix
Normal file
11
options/environments.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.profile = {
|
||||||
|
home.environments = {
|
||||||
|
protobuf.enable = mkEnableOption "protobuf environments";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -76,6 +76,10 @@
|
||||||
bruno.enable = true;
|
bruno.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.environments = {
|
||||||
|
protobuf.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
games.minecraft.enable = true;
|
games.minecraft.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
21
secrets/netrc.yaml
Normal file
21
secrets/netrc.yaml
Normal 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
|
Loading…
Reference in a new issue