diff --git a/legacy/modules/android.nix b/legacy/modules/android.nix deleted file mode 100644 index c72fb82..0000000 --- a/legacy/modules/android.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, ... }: -{ - programs.adb.enable = true; - environment.systemPackages = with pkgs; [ - scrcpy - ]; -} diff --git a/machines/configurations.nix b/machines/configurations.nix index f99609d..11e7932 100644 --- a/machines/configurations.nix +++ b/machines/configurations.nix @@ -40,6 +40,7 @@ let ]; } ../modules + ../profiles ]; defaultModules = baseModules ++ customModules; in diff --git a/machines/thinkman/profiles.nix b/machines/thinkman/profiles.nix new file mode 100644 index 0000000..2ef2c3b --- /dev/null +++ b/machines/thinkman/profiles.nix @@ -0,0 +1,10 @@ +# enabled profiles +{ config, lib, ... }: +let + secrets = config.sops.secrets; +in +{ + my.profiles = { + android.enable = true; + }; +} diff --git a/profiles/android/default.nix b/profiles/android/default.nix new file mode 100644 index 0000000..da23980 --- /dev/null +++ b/profiles/android/default.nix @@ -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 + ]; + }; +} diff --git a/profiles/default.nix b/profiles/default.nix new file mode 100644 index 0000000..ca5c228 --- /dev/null +++ b/profiles/default.nix @@ -0,0 +1,7 @@ +# Configuration that spans accross system and home, or are collections of modules +{ ... }: +{ + imports = [ + ./android + ]; +}