summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-07-29 01:56:19 -0400
committerBen Sima <ben@bsima.me>2022-07-29 01:56:52 -0400
commit7569c08ffc4de1fa5433e04aa15a5d25161826e1 (patch)
tree061c8ed3bfbb675e8df5975dc537b56e16d97daf
parent0cf1950d364fced5e63c56add1ee15afc4eddea1 (diff)
install on cloud
-rwxr-xr-xinstall.sh4
-rw-r--r--lib/emacs-packages.nix2
-rw-r--r--profiles/cloud.nix15
3 files changed, 18 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 54b3c6c..88a7b01 100755
--- a/install.sh
+++ b/install.sh
@@ -14,9 +14,9 @@ else
NIXFILE="$(pwd)/$1"
#
# start from scratch
- rm "$HOMEFILE"
+ rm "$HOMEFILE" || true
ln -s "$NIXFILE" "$HOMEFILE"
- rm "$NIXDIR/config.nix"
+ rm "$NIXDIR/config.nix" || true
ln -s "$(pwd)/lib/config.nix" "$NIXDIR/config.nix"
#
# the notmuch config location is by default ~/.notmuch-config, but home-manager
diff --git a/lib/emacs-packages.nix b/lib/emacs-packages.nix
index 48d645e..cd3d55a 100644
--- a/lib/emacs-packages.nix
+++ b/lib/emacs-packages.nix
@@ -56,7 +56,7 @@ notmuch
nix-buffer
nix-mode
org-clock-today
-org-contrib
+#org-contrib
org-drill
org-roam
melpaStablePackages.org-journal
diff --git a/profiles/cloud.nix b/profiles/cloud.nix
new file mode 100644
index 0000000..115eaeb
--- /dev/null
+++ b/profiles/cloud.nix
@@ -0,0 +1,15 @@
+{ pkgs, lib, ... }:
+
+let
+ homedir = builtins.getEnv "HOME";
+in {
+ imports = [
+ ../lib/common.nix
+ ../lib/emacs.nix
+ ../lib/ssh.nix
+ ../lib/packages.nix
+ ];
+
+ programs.emacs.enable = true;
+ services.emacs.enable = true;
+}