move vscode to home manager

This commit is contained in:
Cyryl Płotnicki 2020-05-02 09:18:11 +01:00
parent 15cec27c55
commit 2c1e5715da
4 changed files with 145 additions and 141 deletions

View file

@ -32,6 +32,8 @@
}; };
hardware.nvidiaOptimus.disable = true; hardware.nvidiaOptimus.disable = true;
hardware.nvidia.optimus_prime.enable = false;
hardware.bumblebee.enable = false;
imports = [ imports = [
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix

View file

@ -7,7 +7,6 @@ in
imports = imports =
[ [
<nixpkgs/nixos/modules/profiles/hardened.nix> <nixpkgs/nixos/modules/profiles/hardened.nix>
./vscode.nix
./syncthing.nix ./syncthing.nix
./gsconnect.nix ./gsconnect.nix
./common-hardware.nix ./common-hardware.nix

View file

@ -11,6 +11,11 @@
qt = { qt = {
enable = true; enable = true;
}; };
imports = [
./vscode.nix
];
home.packages = with pkgs; [ home.packages = with pkgs; [
passff-host passff-host
gnome3.gnome-screenshot gnome3.gnome-screenshot

View file

@ -1,143 +1,141 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
users.users.cyryl = { home.packages = with pkgs; [
packages = with pkgs; [ (vscode-with-extensions.override {
(vscode-with-extensions.override { vscodeExtensions = with vscode-extensions; [ bbenoist.Nix ]
vscodeExtensions = with vscode-extensions; [ bbenoist.Nix ] ++ vscode-utils.extensionsFromVscodeMarketplace [
++ vscode-utils.extensionsFromVscodeMarketplace [ {
{ publisher = "vscodevim";
publisher = "vscodevim"; name = "vim";
name = "vim"; version = "1.13.0";
version = "1.13.0"; sha256 = "07i8p0grc238h3xqh1yyxh95231pvf6m7pbdfz9002rhj5mav87k";
sha256 = "07i8p0grc238h3xqh1yyxh95231pvf6m7pbdfz9002rhj5mav87k"; }
} {
{ publisher = "TabNine";
publisher = "TabNine"; name = "tabnine-vscode";
name = "tabnine-vscode"; version = "2.2.3";
version = "2.2.3"; sha256 = "0wxffsl3sfhxvgl8gz2s0115fpabjqfrrvszbv7ijy6m8shf1clm";
sha256 = "0wxffsl3sfhxvgl8gz2s0115fpabjqfrrvszbv7ijy6m8shf1clm"; }
} {
{ publisher = "matklad";
publisher = "matklad"; name = "rust-analyzer";
name = "rust-analyzer"; version = "0.1.20200302";
version = "0.1.20200302"; sha256 = "0lck4cqk7n9ankygq4c2qjrqz2dznrrsghmbra9c6478pgr6ip6q";
sha256 = "0lck4cqk7n9ankygq4c2qjrqz2dznrrsghmbra9c6478pgr6ip6q"; }
} {
{ publisher = "ms-python";
publisher = "ms-python"; name = "python";
name = "python"; version = "2019.10.41019";
version = "2019.10.41019"; sha256 = "0szikd76vy8mgv8zc0m90rx1jrnwwphx5bb8928drln65xwbzs1q";
sha256 = "0szikd76vy8mgv8zc0m90rx1jrnwwphx5bb8928drln65xwbzs1q"; }
} {
{ publisher = "justusadam";
publisher = "justusadam"; name = "language-haskell";
name = "language-haskell"; version = "2.6.0";
version = "2.6.0"; sha256 = "1891pg4x5qkh151pylvn93c4plqw6vgasa4g40jbma5xzq8pygr4";
sha256 = "1891pg4x5qkh151pylvn93c4plqw6vgasa4g40jbma5xzq8pygr4"; }
} {
{ publisher = "UCL";
publisher = "UCL"; name = "haskelly";
name = "haskelly"; version = "0.5.5";
version = "0.5.5"; sha256 = "0s6a3hdckn2ssk7wkxdv09c0gjk4g0h8071bf7x8br0brnnrwsgi";
sha256 = "0s6a3hdckn2ssk7wkxdv09c0gjk4g0h8071bf7x8br0brnnrwsgi"; }
} {
{ publisher = "2gua";
publisher = "2gua"; name = "rainbow-brackets";
name = "rainbow-brackets"; version = "0.0.6";
version = "0.0.6"; sha256 = "1m5c7jjxphawh7dmbzmrwf60dz4swn8c31svbzb5nhaazqbnyl2d";
sha256 = "1m5c7jjxphawh7dmbzmrwf60dz4swn8c31svbzb5nhaazqbnyl2d"; }
} {
{ publisher = "swyphcosmo";
publisher = "swyphcosmo"; name = "spellchecker";
name = "spellchecker"; version = "1.2.13";
version = "1.2.13"; sha256 = "1lr33lf01afgi74c1a9gylk92li4hyq24l8bki4l6ggl4z4c2h3w";
sha256 = "1lr33lf01afgi74c1a9gylk92li4hyq24l8bki4l6ggl4z4c2h3w"; }
} {
{ publisher = "asabil";
publisher = "asabil"; name = "meson";
name = "meson"; version = "1.1.1";
version = "1.1.1"; sha256 = "00cc28a2nb325f54bx51wf5q15x1pmsn0j9z6rnxxqxwii1dm5cl";
sha256 = "00cc28a2nb325f54bx51wf5q15x1pmsn0j9z6rnxxqxwii1dm5cl"; }
} {
{ publisher = "bungcip";
publisher = "bungcip"; name = "better-toml";
name = "better-toml"; version = "0.3.2";
version = "0.3.2"; sha256 = "08lhzhrn6p0xwi0hcyp6lj9bvpfj87vr99klzsiy8ji7621dzql3";
sha256 = "08lhzhrn6p0xwi0hcyp6lj9bvpfj87vr99klzsiy8ji7621dzql3"; }
} {
{ publisher = "codezombiech";
publisher = "codezombiech"; name = "gitignore";
name = "gitignore"; version = "0.6.0";
version = "0.6.0"; sha256 = "0gnc0691pwkd9s8ldqabmpfvj0236rw7bxvkf0bvmww32kv1ia0b";
sha256 = "0gnc0691pwkd9s8ldqabmpfvj0236rw7bxvkf0bvmww32kv1ia0b"; }
} {
{ publisher = "DavidAnson";
publisher = "DavidAnson"; name = "vscode-markdownlint";
name = "vscode-markdownlint"; version = "0.26.0";
version = "0.26.0"; sha256 = "0g4pssvajn7d8p2547v7313gjyqx4pzs7cbjws2s3v2fk1sw7vbj";
sha256 = "0g4pssvajn7d8p2547v7313gjyqx4pzs7cbjws2s3v2fk1sw7vbj"; }
} {
{ publisher = "esbenp";
publisher = "esbenp"; name = "prettier-vscode";
name = "prettier-vscode"; version = "1.8.1";
version = "1.8.1"; sha256 = "0qcm2784n9qc4p77my1kwqrswpji7bp895ay17yzs5g84cj010ln";
sha256 = "0qcm2784n9qc4p77my1kwqrswpji7bp895ay17yzs5g84cj010ln"; }
} {
{ publisher = "hbenl";
publisher = "hbenl"; name = "vscode-test-explorer";
name = "vscode-test-explorer"; version = "2.9.3";
version = "2.9.3"; sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0";
sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0"; }
} {
{ publisher = "lextudio";
publisher = "lextudio"; name = "restructuredtext";
name = "restructuredtext"; version = "106.0.0";
version = "106.0.0"; sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa";
sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa"; }
} {
{ publisher = "lostintangent";
publisher = "lostintangent"; name = "vsls-pomodoro";
name = "vsls-pomodoro"; version = "0.1.0";
version = "0.1.0"; sha256 = "1b73zbkhlhacvi18cx4g3n6randy3hw9cab1gkw5gzb3375w7w3p";
sha256 = "1b73zbkhlhacvi18cx4g3n6randy3hw9cab1gkw5gzb3375w7w3p"; }
} {
{ publisher = "lostintangent";
publisher = "lostintangent"; name = "vsls-whiteboard";
name = "vsls-whiteboard"; version = "0.0.8";
version = "0.0.8"; sha256 = "13fcay9bs861msb5y694casbw66dmhl504xm5cvprssx1qka186p";
sha256 = "13fcay9bs861msb5y694casbw66dmhl504xm5cvprssx1qka186p"; }
} {
{ publisher = "mauve";
publisher = "mauve"; name = "terraform";
name = "terraform"; version = "1.3.9";
version = "1.3.9"; sha256 = "0hnarr21rivvv41y5x1sp0skdmzwz7zi9aya3n5z1b13ir7lyy42";
sha256 = "0hnarr21rivvv41y5x1sp0skdmzwz7zi9aya3n5z1b13ir7lyy42"; }
} {
{ publisher = "mechatroner";
publisher = "mechatroner"; name = "rainbow-csv";
name = "rainbow-csv"; version = "1.0.0";
version = "1.0.0"; sha256 = "1fyamgm7zq31r3c00cn6pcb66rrkfhwfmp72qnhrajydmnvcnbg6";
sha256 = "1fyamgm7zq31r3c00cn6pcb66rrkfhwfmp72qnhrajydmnvcnbg6"; }
} {
{ publisher = "ms-vscode";
publisher = "ms-vscode"; name = "Go";
name = "Go"; version = "0.9.2";
version = "0.9.2"; sha256 = "0yxnsby8zz1dvnx8nqrhi4xx316mpjf2hs2c5r6fkzh8zhjccwqz";
sha256 = "0yxnsby8zz1dvnx8nqrhi4xx316mpjf2hs2c5r6fkzh8zhjccwqz"; }
} {
{ publisher = "ronnidc";
publisher = "ronnidc"; name = "nunjucks";
name = "nunjucks"; version = "0.2.3";
version = "0.2.3"; sha256 = "119xgyn1dggw2rcqkn2mnz364iw5jlrxg7pcydbijsqj5d3zdfsf";
sha256 = "119xgyn1dggw2rcqkn2mnz364iw5jlrxg7pcydbijsqj5d3zdfsf"; }
} {
{ publisher = "serayuzgur";
publisher = "serayuzgur"; name = "crates";
name = "crates"; version = "0.4.2";
version = "0.4.2"; sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj";
sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj"; }
} ];})
];}) ];
];
};
} }