mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-12 23:27:17 +00:00
Add android studio
This commit is contained in:
parent
e79a5d7cde
commit
50015511a8
|
@ -98,6 +98,11 @@
|
|||
".local/share/cargo"
|
||||
".local/share/go"
|
||||
".config/rye"
|
||||
|
||||
# University crap
|
||||
"Android/Sdk"
|
||||
"AndroidStudioProjects"
|
||||
".android"
|
||||
];
|
||||
extraFiles = [
|
||||
".config/gtk-3.0/bookmarks"
|
||||
|
@ -141,6 +146,7 @@
|
|||
roles = {
|
||||
type = "laptop";
|
||||
virtual-machine = false;
|
||||
isUniMachine = true;
|
||||
};
|
||||
cpu.type = "amd";
|
||||
gpu.type = "amd";
|
||||
|
@ -182,10 +188,10 @@
|
|||
"eDP-1, 1920x1200@60, 0x1080, 1"
|
||||
|
||||
# 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, 1920x1080@60, 1920x1080, 1"
|
||||
"HDMI-A-1, 1920x1080@60, 1920x1080, 1"
|
||||
|
||||
# Mirror the primary (laptop) monitor on externals
|
||||
", preferred, auto, 1, mirror, eDP-1"
|
||||
|
|
|
@ -35,5 +35,15 @@ in {
|
|||
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.)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
imports = [
|
||||
./workstation
|
||||
./laptop
|
||||
./uni
|
||||
];
|
||||
}
|
||||
|
|
13
system/roles/uni/android.nix
Normal file
13
system/roles/uni/android.nix
Normal 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];
|
||||
};
|
||||
}
|
5
system/roles/uni/default.nix
Normal file
5
system/roles/uni/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./android.nix
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue