mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/qgroundcontrol: Add cfg.package option
This commit is contained in:
parent
380350455a
commit
765c9bf44e
1 changed files with 2 additions and 7 deletions
|
@ -40,13 +40,8 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
# Security wrapper
|
||||
security.wrappers.qgroundcontrol = {
|
||||
source = lib.getExe cfg.package;
|
||||
owner = "root"; # Sensible default; not setuid so this is not a security risk
|
||||
group = "tty";
|
||||
setgid = true;
|
||||
};
|
||||
# Add to systemPackages for desktop entry file
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
|
||||
meta.maintainers = pkgs.qgroundcontrol.meta.maintainers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue