summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}