24 lines
507 B
Nix
24 lines
507 B
Nix
|
{ options, config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
with lib.plusultra;
|
||
|
let
|
||
|
cfg = config.plusultra.apps.ubports-installer;
|
||
|
in
|
||
|
{
|
||
|
options.plusultra.apps.ubports-installer = with types; {
|
||
|
enable = mkBoolOpt false "Whether or not to enable the UBPorts Installer.";
|
||
|
};
|
||
|
|
||
|
config =
|
||
|
mkIf cfg.enable {
|
||
|
environment.systemPackages = with pkgs.plusultra; [
|
||
|
ubports-installer
|
||
|
];
|
||
|
|
||
|
services.udev.packages = with pkgs.plusultra; [
|
||
|
ubports-installer-udev-rules
|
||
|
];
|
||
|
};
|
||
|
}
|