mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +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
|
# Add to systemPackages for desktop entry file
|
||||||
security.wrappers.qgroundcontrol = {
|
environment.systemPackages = [ cfg.package ];
|
||||||
source = lib.getExe cfg.package;
|
|
||||||
owner = "root"; # Sensible default; not setuid so this is not a security risk
|
|
||||||
group = "tty";
|
|
||||||
setgid = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.maintainers = pkgs.qgroundcontrol.meta.maintainers;
|
meta.maintainers = pkgs.qgroundcontrol.meta.maintainers;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue