chore: refactor
This commit is contained in:
parent
d7e2a0ce40
commit
a99d8d668e
|
@ -1,8 +1,25 @@
|
||||||
{
|
{pkgs, ...}: let
|
||||||
pkgs,
|
# Plugin list to build our IDE's with
|
||||||
inputs,
|
buildIdeWithPlugins = ide:
|
||||||
...
|
pkgs.jetbrains.plugins.addPlugins ide [
|
||||||
}: {
|
"github-copilot" # patched to work with NixOS
|
||||||
|
|
||||||
|
# Plugin ID: gruvbox-material-dark
|
||||||
|
(pkgs.stdenv.mkDerivation {
|
||||||
|
name = "gruvbox-material-dark";
|
||||||
|
version = "1.0.2";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://downloads.marketplace.jetbrains.com/files/25641/650322/gruvbox-material-dark.jar";
|
||||||
|
hash = "sha256-cgTJRisPqtZf5NMQqdbRhx1fbrx9U2eeHkpT8+rb+8E=";
|
||||||
|
};
|
||||||
|
dontUnpack = true;
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp $src $out
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
|
in {
|
||||||
# Enable Visual Studio Code (VSCode) program
|
# Enable Visual Studio Code (VSCode) program
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -12,6 +29,7 @@
|
||||||
github.copilot
|
github.copilot
|
||||||
github.copilot-chat
|
github.copilot-chat
|
||||||
];
|
];
|
||||||
|
# Configuration
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"window.menuBarVisibility" = "compact";
|
"window.menuBarVisibility" = "compact";
|
||||||
"window.titleBarStyle" = "custom";
|
"window.titleBarStyle" = "custom";
|
||||||
|
@ -20,23 +38,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# List of packages to be installed
|
# List of packages to be installed
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs; [
|
||||||
[
|
# Toolchain
|
||||||
# Toolchain
|
gcc
|
||||||
gcc
|
unstable.python313Full # Note: keep this in sync with school.
|
||||||
unstable.python313Full # Note: keep this in sync with school.
|
|
||||||
]
|
# Install jetbrains IDE's with plugins
|
||||||
# Install jetbrains IDEs with plugins
|
(buildIdeWithPlugins pkgs.jetbrains.clion)
|
||||||
++ (with inputs.nix-jetbrains-plugins.lib."${system}"; [
|
(buildIdeWithPlugins pkgs.jetbrains.idea-ultimate)
|
||||||
(buildIdeWithPlugins pkgs.jetbrains "clion" [
|
(buildIdeWithPlugins pkgs.jetbrains.pycharm-professional)
|
||||||
"gruvbox-material-dark"
|
];
|
||||||
])
|
|
||||||
(buildIdeWithPlugins pkgs.jetbrains "idea-ultimate" [
|
|
||||||
"gruvbox-material-dark"
|
|
||||||
])
|
|
||||||
(buildIdeWithPlugins pkgs.jetbrains "pycharm-professional" [
|
|
||||||
"gruvbox-material-dark"
|
|
||||||
])
|
|
||||||
]);
|
|
||||||
# https://github.com/theCapypara/nix-jetbrains-plugins
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue