summary refs log tree commit diff stats
path: root/user/settings/development/web.nix
blob: e5c5ebb7a6140d0be0f7e3ec1a9657fe79bd8c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ config
, pkgs
, lib
, ...
}: {
  home.packages = with pkgs.nodePackages; [
    vscode-css-languageserver-bin
    vscode-html-languageserver-bin
    csslint
    stylelint
  ] ++ (with pkgs; [
    flyctl
    prettierd
    personal.htmlformat
    nodePackages.vercel
  ]);
  home.shellAliases = {
    # 0.2.25 current completion command only affects `flyctl`, although `fly` is a link to `flyctl`
    fly = "flyctl";
  };
  programs.chromium = lib.mkIf pkgs.stdenv.isLinux {
    enable = true;
    package = pkgs.ungoogled-chromium;
    extensions = [
      # # uBlock origin
      { id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; }
      {
        id = "ocaahdebbfolfmndjeplogmgcagdmblk";
        updateUrl = "https://raw.githubusercontent.com/NeverDecaf/chromium-web-store/master/updates.xml";
      }
    ];
    dictionaries = with pkgs.hunspellDictsChromium; [
      en-gb
      de-de
    ];
  };
  programs.emacs.extraPackages = epkgs: (with epkgs; [
    caddyfile-mode
    emmet-mode
    nginx-mode
    web-mode
  ]);
  programs.neovim.plugins = with pkgs.vimPlugins; [
    coc-css
    coc-html
  ];
}