nixos-config/configurations/profile/home/editor/code.nix

18 lines
778 B
Nix
Raw Normal View History

{ config, lib, pkgs, materusArg, ... }:
2023-10-08 11:42:08 +02:00
let
cfg = config.materus.profile.editor.code;
in
{
options.materus.profile.editor.code.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableDesktop "Enable VSCodium with materus cfg";
options.materus.profile.editor.code.fhs.enable = materusArg.pkgs.lib.mkBoolOpt false "Use fhs vscodium";
2024-03-11 16:19:31 +01:00
options.materus.profile.editor.code.fhs.packages = lib.mkOption { default = (ps: [ ]); };
2023-10-08 11:42:08 +02:00
config = lib.mkIf cfg.enable {
programs.vscode = {
enable = lib.mkDefault true;
2024-03-11 16:19:31 +01:00
package = lib.mkDefault (if (cfg.fhs.enable) then (pkgs.vscodium.fhsWithPackages cfg.fhs.packages) else pkgs.vscodium);
2023-10-08 11:42:08 +02:00
mutableExtensionsDir = lib.mkDefault true;
};
materus.profile.fonts.enable = lib.mkDefault true;
};
}