40 lines
890 B
Nix
40 lines
890 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# only purpose of this is to make vscode login to Github
|
|
services.gnome-keyring = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.vscode = {
|
|
enable = true;
|
|
|
|
userSettings = {
|
|
"update.channel" = "none";
|
|
"editor" = {
|
|
"formatOnSave" = true;
|
|
"fontFamily" = "Fira Code";
|
|
"fontLigatures" = true;
|
|
};
|
|
"window"."menuBarVisibility" = "classic";
|
|
"[nix]"."editor.tabSize" = 2;
|
|
"nix"."enableLanguageServer" = true;
|
|
"github.copilot.enable" = {
|
|
"*" = true;
|
|
};
|
|
};
|
|
extensions = with pkgs.vscode-extensions; [
|
|
eamodio.gitlens
|
|
jnoortheen.nix-ide
|
|
haskell.haskell
|
|
justusadam.language-haskell
|
|
#ms-python.python
|
|
];
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
stylish-haskell
|
|
ghc
|
|
] ++ (if pkgs.system == "x86_64-linux" then [
|
|
haskell-language-server
|
|
] else [ ]);
|
|
}
|