From 0d9e6aa06b267c71c358a034c82412f28b589917 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 21 May 2024 09:22:18 +0200 Subject: avoid hardcoding absolute path to this repo in nix --- system/settings/user-interface.nix | 2 +- user/settings/shell.nix | 2 +- 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)"; -- cgit 1.4.1