Nixerus/configurations/profile/home/editor/code.nix

18 lines
770 B
Nix
Raw Normal View History

2023-05-18 12:07:07 +02:00
{ config, lib, pkgs, materusPkgs, ... }:
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";
2023-09-17 13:00:37 +02:00
options.materus.profile.editor.code.fhs.enable = materusPkgs.lib.mkBoolOpt false "Use fhs vscodium";
options.materus.profile.editor.code.fhs.packages = lib.mkOption { default = (ps: []);};
2023-05-18 12:07:07 +02:00
config = lib.mkIf cfg.enable {
programs.vscode = {
enable = lib.mkDefault true;
2023-09-17 13:00:37 +02:00
package = lib.mkDefault (if (cfg.fhs.enable) then (pkgs.vscodium.fhsWithPackages cfg.fhs.packages) else pkgs.vscodium);
2023-05-18 12:07:07 +02:00
mutableExtensionsDir = lib.mkDefault true;
};
materus.profile.fonts.enable = lib.mkDefault true;
};
}