mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 11:37:57 +00:00
nixos/cage: add package option (#359057)
This commit is contained in:
commit
db607a647b
@ -41,6 +41,8 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
options.services.cage.package = mkPackageOption pkgs "cage" { };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
# The service is partially based off of the one provided in the
|
||||
@ -64,7 +66,7 @@ in {
|
||||
unitConfig.ConditionPathExists = "/dev/tty1";
|
||||
serviceConfig = {
|
||||
ExecStart = ''
|
||||
${pkgs.cage}/bin/cage \
|
||||
${cfg.package}/bin/cage \
|
||||
${escapeShellArgs cfg.extraArguments} \
|
||||
-- ${cfg.program}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user