From ffe20c5616db580241a62ee3edd9d45c0aa3214f Mon Sep 17 00:00:00 2001 From: jowj Date: Mon, 10 Dec 2018 12:30:28 -0600 Subject: [PATCH] Add post deployment configuration of Firefox browser --- deployments/nixDeploy/nix.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/deployments/nixDeploy/nix.py b/deployments/nixDeploy/nix.py index ccf5c3c..6977a84 100644 --- a/deployments/nixDeploy/nix.py +++ b/deployments/nixDeploy/nix.py @@ -43,8 +43,6 @@ add_Apt_Programs = [ "nextcloud-client" ] - - snapProgramsToAdd = [ "slack", "discord", @@ -65,6 +63,22 @@ subprocess.run(update_Apt_Repos) print("installing apt packages") subprocess.run(add_Apt_Programs) -print("installing snap packages") -subprocess.run('sudo snap install ' + snapProgramsToAdd) +#print("installing snap packages") +#subprocess.run('sudo snap install ' + snapProgramsToAdd) +# post processing for firefox userChrome.css +# cp userChrome.css to the profile directory > chrome > userChrome.css +create_Firefox_Chrome_Folder = [ + "mkdir", + "-p", + "~/.mozilla/firefox/*.default/chrome/" +] + +configure_Firefox = [ + "cp" + "~/Documents/projects/agares/applicationConfiguration/firefox/userChrome.css", + "~/.mozilla/firefox/*.default/chrome/userChrome.css" +] + +subprocess.run(create_Firefox_Chrome_Folder) +subprocess.run(configure_Firefox)