summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-21 09:22:18 +0200
committerAlan Pearce2024-05-21 09:22:18 +0200
commit0d9e6aa06b267c71c358a034c82412f28b589917 (patch)
treeb325d20cfdbc6a84d6aa391012e4638bdb72838c
parentda560ebda355d444d963f73b1086989d80d3dd10 (diff)
downloadnixfiles-0d9e6aa06b267c71c358a034c82412f28b589917.tar.lz
nixfiles-0d9e6aa06b267c71c358a034c82412f28b589917.tar.zst
nixfiles-0d9e6aa06b267c71c358a034c82412f28b589917.zip
avoid hardcoding absolute path to this repo in nix
-rw-r--r--system/settings/user-interface.nix2
-rw-r--r--user/settings/shell.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/settings/user-interface.nix b/system/settings/user-interface.nix
index 3ed45bbb..d9d3297f 100644
--- a/system/settings/user-interface.nix
+++ b/system/settings/user-interface.nix
@@ -52,7 +52,7 @@
 
   programs.nh = {
     enable = true;
-    flake = "/home/alan/projects/alanpearce.eu/nixfiles";
+    flake = builtins.toString ../..;
     clean = {
       enable = true;
       extraArgs = "--keep-since 14d";
diff --git a/user/settings/shell.nix b/user/settings/shell.nix
index 62f68e14..76c5621e 100644
--- a/user/settings/shell.nix
+++ b/user/settings/shell.nix
@@ -30,7 +30,7 @@ in
       llr = "ll -t";
 
       c = "lk";
-      "c," = "cd $(ghq list -p nixfiles)";
+      "c," = "cd ${toString ../..}";
       cg = "cd $(git root)";
       cdg = "cd $(git root)";