From 390f54b1f50f92af139eb4efcc3a314bdc2a5077 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 28 Sep 2024 16:52:30 +0300 Subject: [PATCH] modules: change container command to fix xdg-open --- modules/nixos/programs/browsers/default.nix | 2 +- modules/nixos/programs/communication/skype.nix | 2 +- modules/nixos/programs/communication/telegram.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nixos/programs/browsers/default.nix b/modules/nixos/programs/browsers/default.nix index e945d60..69cdd30 100644 --- a/modules/nixos/programs/browsers/default.nix +++ b/modules/nixos/programs/browsers/default.nix @@ -11,7 +11,7 @@ let hostPackages = lib.flip map contPackages (p: let hostRunBrowser = pkgs.writeScript "cont-run-browser" '' - sudo nixos-container run browsers -- su -l kira -c $@ + sudo nixos-container run browsers -- su -l kira -c "$*" ''; hostBrowserScript = pkgs.writeScriptBin "${p.meta.mainProgram}" '' diff --git a/modules/nixos/programs/communication/skype.nix b/modules/nixos/programs/communication/skype.nix index 55e9268..c6b6f8e 100644 --- a/modules/nixos/programs/communication/skype.nix +++ b/modules/nixos/programs/communication/skype.nix @@ -5,7 +5,7 @@ let cfg = config.local.programs.communication.skype; hostRunPackage = pkgs.writeScript "cont-run" '' - sudo nixos-container run skype su -l kira -c $@ + sudo nixos-container run skype -- su -l kira -c "$*" ''; hostPackageScript = pkgs.writeScriptBin "${cfg.package.meta.mainProgram}" '' diff --git a/modules/nixos/programs/communication/telegram.nix b/modules/nixos/programs/communication/telegram.nix index 5f467f8..b89df54 100644 --- a/modules/nixos/programs/communication/telegram.nix +++ b/modules/nixos/programs/communication/telegram.nix @@ -5,7 +5,7 @@ let cfg = config.local.programs.communication.telegram; hostRunPackage = pkgs.writeScript "cont-run" '' - sudo nixos-container run telegram su -l kira -c $@ + sudo nixos-container run telegram -- su -l kira -c "$*" ''; hostPackageScript = pkgs.writeScriptBin "${cfg.package.meta.mainProgram}" ''