mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profile/android: init profiles
This commit is contained in:
parent
b6b9a1860d
commit
301986bda3
5 changed files with 34 additions and 7 deletions
|
@ -1,7 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.adb.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
scrcpy
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -40,6 +40,7 @@ let
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
../modules
|
../modules
|
||||||
|
../profiles
|
||||||
];
|
];
|
||||||
defaultModules = baseModules ++ customModules;
|
defaultModules = baseModules ++ customModules;
|
||||||
in
|
in
|
||||||
|
|
10
machines/thinkman/profiles.nix
Normal file
10
machines/thinkman/profiles.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# enabled profiles
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
secrets = config.sops.secrets;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
my.profiles = {
|
||||||
|
android.enable = true;
|
||||||
|
};
|
||||||
|
}
|
16
profiles/android/default.nix
Normal file
16
profiles/android/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.profiles.android;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.profiles.android = with lib; {
|
||||||
|
enable = mkEnableOption "android profile";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.adb.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
scrcpy
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
7
profiles/default.nix
Normal file
7
profiles/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Configuration that spans accross system and home, or are collections of modules
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./android
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue