Add android studio

This commit is contained in:
ItsDrike 2024-09-24 11:19:54 +02:00
parent e79a5d7cde
commit 50015511a8
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
5 changed files with 37 additions and 2 deletions

View file

@ -98,6 +98,11 @@
".local/share/cargo" ".local/share/cargo"
".local/share/go" ".local/share/go"
".config/rye" ".config/rye"
# University crap
"Android/Sdk"
"AndroidStudioProjects"
".android"
]; ];
extraFiles = [ extraFiles = [
".config/gtk-3.0/bookmarks" ".config/gtk-3.0/bookmarks"
@ -141,6 +146,7 @@
roles = { roles = {
type = "laptop"; type = "laptop";
virtual-machine = false; virtual-machine = false;
isUniMachine = true;
}; };
cpu.type = "amd"; cpu.type = "amd";
gpu.type = "amd"; gpu.type = "amd";
@ -182,10 +188,10 @@
"eDP-1, 1920x1200@60, 0x1080, 1" "eDP-1, 1920x1200@60, 0x1080, 1"
# HDMI-A-1 above primary # HDMI-A-1 above primary
"HDMI-A-1, 1920x1080@60, 0x0, 1" #"HDMI-A-1, 1920x1080@60, 0x0, 1"
# HDMI-A-1 left to primary # HDMI-A-1 left to primary
#"HDMI-A-1, 1920x1080@60, 1920x1080, 1" "HDMI-A-1, 1920x1080@60, 1920x1080, 1"
# Mirror the primary (laptop) monitor on externals # Mirror the primary (laptop) monitor on externals
", preferred, auto, 1, mirror, eDP-1" ", preferred, auto, 1, mirror, eDP-1"

View file

@ -35,5 +35,15 @@ in {
Workstation machines are meant for regular day-to-day use. Workstation machines are meant for regular day-to-day use.
''; '';
}; };
isUniMachine = mkOption {
type = lib.types.bool;
default = false;
description = ''
Should University specific configuration be applied?
(Things like University specific software, etc.)
'';
};
}; };
} }

View file

@ -7,5 +7,6 @@
imports = [ imports = [
./workstation ./workstation
./laptop ./laptop
./uni
]; ];
} }

View file

@ -0,0 +1,13 @@
{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
inherit (config.myOptions.device.roles) isUniMachine;
in {
config = mkIf isUniMachine {
environment.systemPackages = [pkgs.android-studio];
};
}

View file

@ -0,0 +1,5 @@
{
imports = [
./android.nix
];
}