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,7 +1,6 @@
{ 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 [
@ -139,5 +138,4 @@
} }
];}) ];})
]; ];
};
} }