From db127c795c7ac4b4fb5b3292d8008daa879a37dc Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 9 Dec 2018 21:31:42 -0600 Subject: [PATCH] Begin work on nixdeploys; alter emacs config to point 2 py3 --- applicationConfiguration/.emacs/init.el | 2 +- deployments/nixDeploy/nix.py | 34 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 deployments/nixDeploy/nix.py diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index 2da7b7b..37a4b14 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -131,7 +131,7 @@ ;; -------------------------------------- (elpy-enable) -(setq python-shell-interpreter "python" +(setq python-shell-interpreter "python3" python-shell-interpreter-args "-i") ;; use flycheck not flymake with elpy diff --git a/deployments/nixDeploy/nix.py b/deployments/nixDeploy/nix.py new file mode 100644 index 0000000..ab351dc --- /dev/null +++ b/deployments/nixDeploy/nix.py @@ -0,0 +1,34 @@ +import os +import sys +import argparse +import subprocess +import pdb + +reposToAdd = "ppa:nextcloud-devs/client" + +aptProgramsToAdd = [ + "powershell", + "emacs", + "python3.7", + "firefox", + "dropbox", + "docker", + "nextcloud-client" +] +snapProgramsToAdd = [ + "slack", + "discord", +] + +subprocess.run('sudo apt add-repo ' + reposToAdd) +print("adding repos") + +subprocess.run('sudo apt update') +print("updating apt") + +subprocess.run('sudo apt-get install ' + aptProgramsToAdd) +print("installing apt packages") + +subprocess.run('sudo snap install ' + snapProgramsToAdd) +print("installing snap packages") +