From 85d3d4422a90a3dd20602aa7c41ba9ed0f6bbf0e Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 31 Jul 2023 21:12:47 +0900 Subject: [PATCH] Drop to depend home.nix outside of this repo --- home/.config/home-manager/home.nix | 4 +++- home/.local/share/homemade/bin/updeps.bash | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/home/.config/home-manager/home.nix b/home/.config/home-manager/home.nix index 75d3762a..f34fab58 100644 --- a/home/.config/home-manager/home.nix +++ b/home/.config/home-manager/home.nix @@ -102,7 +102,9 @@ # - Prefer XDG_* # - If can't write the reason as a comment - xdg.configFile."home-manager/home.nix".source = ./home.nix; + # Actually cannot use this dir and home.nix because of using many relative dirs + # So you should call `home-manager switch` with `-f ~/repos/dotfiles/home.nix` + xdg.configFile."home-manager".source = ./.; xdg.configFile."git/config".source = ../git/config; xdg.configFile."alacritty/alacritty.yml".source = ../alacritty/alacritty.yml; diff --git a/home/.local/share/homemade/bin/updeps.bash b/home/.local/share/homemade/bin/updeps.bash index 8b7e3788..30a12cec 100755 --- a/home/.local/share/homemade/bin/updeps.bash +++ b/home/.local/share/homemade/bin/updeps.bash @@ -12,7 +12,6 @@ darwin*) esac nix-channel --update -home-manager switch if command -v rtx; then rtx self-update