2023-05-18 12:07:07 +02:00
|
|
|
{ config, lib, pkgs, materusPkgs, ... }:
|
2023-05-23 17:26:52 +02:00
|
|
|
let
|
|
|
|
cfg = config.materus.profile.editor.code;
|
2023-05-18 12:07:07 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.materus.profile.editor.code.enable = materusPkgs.lib.mkBoolOpt config.materus.profile.enableDesktop "Enable VSCodium with materus cfg";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.vscode = {
|
|
|
|
enable = lib.mkDefault true;
|
2023-05-23 17:26:52 +02:00
|
|
|
package = lib.mkDefault (pkgs.vscodium.fhsWithPackages (ps: with ps; [
|
|
|
|
gcc
|
|
|
|
clang
|
|
|
|
llvm
|
|
|
|
lld
|
|
|
|
lldb
|
|
|
|
gdb
|
|
|
|
rnix-hashes
|
|
|
|
rnix-lsp
|
|
|
|
nixfmt
|
|
|
|
(python311.withPackages (ps: with ps; [ urllib3 ]))
|
|
|
|
]));
|
2023-05-18 12:07:07 +02:00
|
|
|
mutableExtensionsDir = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
materus.profile.fonts.enable = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
}
|