refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
23
modules/nixos/apps/ubports-installer/default.nix
Normal file
23
modules/nixos/apps/ubports-installer/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue