aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-05-24 06:12:33 +0200
committerMartin Fischer <martin@push-f.com>2026-06-08 08:32:14 +0200
commitad9a155d8b7085824b3de487e44ddc7af8a0b9df (patch)
tree200e8b12a6dae8913ff8efa357617fa53cd0fba3
parent3c6cc320214b92d0cd5310d2c5b9d7510de9c53f (diff)
feat(workstation): add android-studio
-rwxr-xr-xinstall-imperative2
-rw-r--r--nixos/profiles/workstation/default.nix8
-rw-r--r--nixos/profiles/workstation/dev.nix1
-rw-r--r--user/ideavim/ideavimrc4
4 files changed, 15 insertions, 0 deletions
diff --git a/install-imperative b/install-imperative
index 2d9f6fe..d87dd51 100755
--- a/install-imperative
+++ b/install-imperative
@@ -11,6 +11,8 @@ cargo install typos-cli
npm install -g pyright
+android-studio installPlugins IdeaVIM com.intellij.plugins.watcher
+
# Mostly installing VSCodium extensions here since the pyright extension cannot
# use the globally installed pyright (https://github.com/microsoft/pyright/issues/2035).
code-ext() {
diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix
index 1b1699b..f88f77c 100644
--- a/nixos/profiles/workstation/default.nix
+++ b/nixos/profiles/workstation/default.nix
@@ -59,6 +59,14 @@ in
autologinOnce = true; # only in the first tty once per boot
};
+ nixpkgs.config.allowUnfreePredicate =
+ pkg:
+ builtins.elem (lib.getName pkg) [
+ # The device mirroring feature is nice. Also I couldn't get kotlin-lsp (nor any of the open source
+ # Kotlin language servers) to reliably resolve references and show documentation on hover.
+ "android-studio-stable"
+ ];
+
environment.systemPackages = with pkgs; [
npins
(callPackage "${sources.agenix}/pkgs/agenix.nix" {})
diff --git a/nixos/profiles/workstation/dev.nix b/nixos/profiles/workstation/dev.nix
index e3baa5f..631ef93 100644
--- a/nixos/profiles/workstation/dev.nix
+++ b/nixos/profiles/workstation/dev.nix
@@ -26,6 +26,7 @@
pkgs-unstable.zed-editor
vscodium
+ android-studio
# I'm installing extensions via my install-imperative script.
platformio
diff --git a/user/ideavim/ideavimrc b/user/ideavim/ideavimrc
new file mode 100644
index 0000000..81dc523
--- /dev/null
+++ b/user/ideavim/ideavimrc
@@ -0,0 +1,4 @@
+set clipboard+=unnamed
+
+" Disable annoying bell sound. Note that visual bell isn't implemented so nothing will be heard or seen.
+set visualbell