dotfiles/modules/editors/code.nix

30 lines
657 B
Nix
Raw Normal View History

2022-03-23 12:41:04 +01:00
{ config, lib, pkgs, ... }:
2022-03-30 10:55:57 +02:00
with lib;
2022-03-23 12:41:04 +01:00
let cfg = config.modules.editors;
in {
2022-03-30 10:55:57 +02:00
options.modules.editors = {
code = mkOption {
default = false;
type = types.bool;
example = true;
};
};
config = mkIf cfg.code {
2022-03-23 12:41:04 +01:00
home-manager.users.moritz = {
programs.vscode = {
enable = true;
package = pkgs.vscode-fhsWithPackages (ps: with ps; [ git ]);
2022-03-30 10:55:57 +02:00
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
dracula-theme.theme-dracula
esbenp.prettier-vscode
github.copilot
pkief.material-icon-theme
vscodevim.vim
];
2022-03-23 12:41:04 +01:00
};
};
};
}