refactor out jetbrains nix module
This commit is contained in:
parent
d2b522e460
commit
c17e22211b
7 changed files with 31 additions and 2 deletions
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -51,6 +51,7 @@
|
|||
"pkgs",
|
||||
"pompup",
|
||||
"pompydev",
|
||||
"Prefs",
|
||||
"protonup",
|
||||
"pulseaudio",
|
||||
"pyenv",
|
||||
|
|
|
@ -57,7 +57,6 @@ args@{
|
|||
devtoolbox
|
||||
mongodb-compass
|
||||
dbeaver-bin
|
||||
jetbrains-toolbox
|
||||
filezilla
|
||||
glade
|
||||
seabird
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
../../modules/home-manager/dconf-input.nix
|
||||
../../modules/home-manager/dconf-nautilus.nix
|
||||
../../modules/home-manager/git.nix
|
||||
../../modules/home-manager/jetbrains.nix
|
||||
../../modules/home-manager/nautilus.nix
|
||||
../../modules/home-manager/ghostty.nix
|
||||
../../modules/home-manager/osu.nix
|
||||
|
|
|
@ -38,7 +38,6 @@ args@{
|
|||
environment.systemPackages = with pkgs; [
|
||||
# Dev
|
||||
hotspot
|
||||
jetbrains-toolbox
|
||||
|
||||
# Office
|
||||
onlyoffice-bin
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
../../modules/home-manager/dconf-input.nix
|
||||
../../modules/home-manager/dconf-nautilus.nix
|
||||
../../modules/home-manager/git.nix
|
||||
../../modules/home-manager/jetbrains.nix
|
||||
../../modules/home-manager/nautilus.nix
|
||||
../../modules/home-manager/ghostty.nix
|
||||
../../modules/home-manager/osu.nix
|
||||
|
|
20
misc/reset_jetbrains
Executable file
20
misc/reset_jetbrains
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
|
||||
|
||||
rm -rf ~/.java/.userPrefs/prefs.xml
|
||||
rm -rf ~/.java/.userPrefs/jetbrains/prefs.xml
|
||||
|
||||
for PRODUCT in $PRODUCTS; do
|
||||
echo "[+] Resetting trial period for ${PRODUCT}"
|
||||
|
||||
rm -rf ~/.config/JetBrains/${PRODUCT}*/eval/
|
||||
rm -rf ~/.config/JetBrains/${PRODUCT}*/options/other.xml
|
||||
rm -rf ~/.config/${PRODUCT}*/options/other.xml
|
||||
rm -rf ~/.config/${PRODUCT}*/eval
|
||||
done
|
||||
|
||||
echo "Removing userPrefs files..."
|
||||
rm -rf ~/.java/.userPrefs
|
||||
|
||||
echo "Done!"
|
8
modules/home-manager/jetbrains.nix
Normal file
8
modules/home-manager/jetbrains.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
jetbrains-toolbox
|
||||
(writeShellScriptBin "reset_jetbrains" ../../misc/reset_jetbrains)
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue