Move stow under home-manager activation

This commit is contained in:
2026-04-05 17:41:18 +00:00
parent dee90c84a7
commit eeded33577
3 changed files with 13 additions and 2 deletions

View File

@@ -23,5 +23,4 @@ nix run \
switch \
--extra-experimental-features 'nix-command flakes' \
--flake .#artem@deimos
stow legacy
```

View File

@@ -137,6 +137,8 @@ in
mount-cwd
(readwrite (noescape "~/.gemini"))
# The above is a stow-controlled symlink to the following.
(readwrite (noescape "~/dotfiles/legacy/.gemini"))
(add-pkg-deps (
with pkgs;

View File

@@ -1,4 +1,9 @@
{ pkgs, primaryUser, ... }:
{
pkgs,
lib,
primaryUser,
...
}:
{
home.username = primaryUser;
home.packages = with pkgs; [
@@ -7,6 +12,11 @@
gemini-cli
silver-searcher
];
home.activation.stowLegacy = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ -d "$HOME/dotfiles" ]; then
run ${pkgs.stow}/bin/stow -d $HOME/dotfiles -t $HOME legacy
fi
'';
programs.zsh = {
enable = true;