Skip to content

Commit

Permalink
nixos/qgroundcontrol: Add cfg.package option
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 committed Oct 2, 2024
1 parent 3803504 commit 765c9bf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions nixos/modules/programs/qgroundcontrol.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 765c9bf

Please sign in to comment.