1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-04-27 23:35:05 +02:00
git.oat.zone--dark-firepit-.../modules/desktop/editors/codium.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

36 lines
888 B
Nix

{ config, lib, pkgs, options, ... }:
with lib;
let
cfg = config.modules.desktop.editors.codium;
in {
options.modules.desktop.editors.codium = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
home._.programs.vscode = {
enable = true;
package = (pkgs.vscode-with-extensions.override {
vscode = pkgs.vscodium;
vscodeExtensions = with pkgs.vscode-extensions; [
ms-vsliveshare.vsliveshare
bbenoist.nix
zhuangtongfa.material-theme
pkief.material-icon-theme
vscodevim.vim
] ++ (if config.modules.dev.haskell.enable then [
haskell.haskell
justusadam.language-haskell
] else [ ]);
}).overrideAttrs (old: {
inherit (pkgs.vscodium) pname version;
});
extensions = [ ];
};
};
}