Add javascript shells
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -80,7 +80,9 @@
|
||||
in
|
||||
{
|
||||
devShells = {
|
||||
bun = import ./hosts/common/system/shells/bun { inherit pkgs; };
|
||||
nix = import ./hosts/common/system/shells/nix { inherit pkgs; };
|
||||
nodejs = import ./hosts/common/system/shells/nodejs { inherit pkgs; };
|
||||
python = import ./hosts/common/system/shells/python { inherit pkgs; };
|
||||
};
|
||||
|
||||
|
6
hosts/common/system/shells/bun/default.nix
Normal file
6
hosts/common/system/shells/bun/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
bun
|
||||
];
|
||||
}
|
@@ -5,8 +5,4 @@ pkgs.mkShell {
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
exec $SHELL
|
||||
'';
|
||||
}
|
||||
|
6
hosts/common/system/shells/nodejs/default.nix
Normal file
6
hosts/common/system/shells/nodejs/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
nodejs
|
||||
];
|
||||
}
|
@@ -11,8 +11,4 @@ pkgs.mkShell {
|
||||
]
|
||||
))
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
exec $SHELL
|
||||
'';
|
||||
}
|
||||
|
@@ -97,8 +97,8 @@ in
|
||||
fi
|
||||
|
||||
$DCONF_DBUS_RUN_SESSION bash -c "
|
||||
dconf write /org/gnome/desktop/interface/gtk-theme "'$GTK_THEME'"
|
||||
dconf write /org/gnome/desktop/interface/color-scheme "'prefer-$MODE'"
|
||||
dconf write /org/gnome/desktop/interface/gtk-theme \"'$GTK_THEME'\"
|
||||
dconf write /org/gnome/desktop/interface/color-scheme \"'prefer-$MODE'\"
|
||||
"
|
||||
'';
|
||||
}
|
||||
|
@@ -108,6 +108,7 @@ in
|
||||
imports = [
|
||||
./langs/nix
|
||||
./langs/python
|
||||
./langs/svelte
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@@ -0,0 +1,15 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.vscode = {
|
||||
userSettings = {
|
||||
"svelte.enable-ts-plugin" = true;
|
||||
};
|
||||
|
||||
extensions =
|
||||
with pkgs;
|
||||
with vscode-extensions;
|
||||
[
|
||||
svelte.svelte-vscode
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user