From f5407927cfaec2a9a9681efd5aa6fbc5b6eb44b8 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 28 May 2024 20:45:50 +0200 Subject: [PATCH] Move vscode to editors --- hosts/nixos-test/home.nix | 3 +++ hosts/perso-desktop/home.nix | 3 +++ hosts/perso-laptop/home.nix | 3 +++ hosts/pro-laptop/home.nix | 3 +++ modules/home/apps/default.nix | 1 - modules/home/default.nix | 1 + modules/home/editors/default.nix | 7 +++++++ modules/home/{apps => editors}/vscode/default.nix | 4 ++-- 8 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 modules/home/editors/default.nix rename modules/home/{apps => editors}/vscode/default.nix (90%) diff --git a/hosts/nixos-test/home.nix b/hosts/nixos-test/home.nix index 3666345..0aafc57 100644 --- a/hosts/nixos-test/home.nix +++ b/hosts/nixos-test/home.nix @@ -11,6 +11,9 @@ flatpak.enable = true; jetbrainsToolbox.enable = true; kitty.enable = true; + }; + + editors = { vscode.enable = true; }; diff --git a/hosts/perso-desktop/home.nix b/hosts/perso-desktop/home.nix index 3666345..0aafc57 100644 --- a/hosts/perso-desktop/home.nix +++ b/hosts/perso-desktop/home.nix @@ -11,6 +11,9 @@ flatpak.enable = true; jetbrainsToolbox.enable = true; kitty.enable = true; + }; + + editors = { vscode.enable = true; }; diff --git a/hosts/perso-laptop/home.nix b/hosts/perso-laptop/home.nix index 3666345..0aafc57 100644 --- a/hosts/perso-laptop/home.nix +++ b/hosts/perso-laptop/home.nix @@ -11,6 +11,9 @@ flatpak.enable = true; jetbrainsToolbox.enable = true; kitty.enable = true; + }; + + editors = { vscode.enable = true; }; diff --git a/hosts/pro-laptop/home.nix b/hosts/pro-laptop/home.nix index 3666345..0aafc57 100644 --- a/hosts/pro-laptop/home.nix +++ b/hosts/pro-laptop/home.nix @@ -11,6 +11,9 @@ flatpak.enable = true; jetbrainsToolbox.enable = true; kitty.enable = true; + }; + + editors = { vscode.enable = true; }; diff --git a/modules/home/apps/default.nix b/modules/home/apps/default.nix index ff42f42..888257b 100644 --- a/modules/home/apps/default.nix +++ b/modules/home/apps/default.nix @@ -6,6 +6,5 @@ ./flatpak ./jetbrainsToolbox ./kitty - ./vscode ]; } \ No newline at end of file diff --git a/modules/home/default.nix b/modules/home/default.nix index 92279a8..6d528ce 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -3,6 +3,7 @@ { imports = [ ./apps + ./editors ./desktop ./shell ]; diff --git a/modules/home/editors/default.nix b/modules/home/editors/default.nix new file mode 100644 index 0000000..40db812 --- /dev/null +++ b/modules/home/editors/default.nix @@ -0,0 +1,7 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./vscode + ]; +} \ No newline at end of file diff --git a/modules/home/apps/vscode/default.nix b/modules/home/editors/vscode/default.nix similarity index 90% rename from modules/home/apps/vscode/default.nix rename to modules/home/editors/vscode/default.nix index a52feca..13ed250 100644 --- a/modules/home/apps/vscode/default.nix +++ b/modules/home/editors/vscode/default.nix @@ -2,10 +2,10 @@ with lib; let - cfg = config.modules.home.apps.vscode; + cfg = config.modules.home.editors.vscode; in { - options.modules.home.apps.vscode = { + options.modules.home.editors.vscode = { enable = mkEnableOption '' Enable vscode with my custom configurations '';