Compare commits

...

2 Commits

Author SHA1 Message Date
eeded33577 Move stow under home-manager activation 2026-04-05 17:41:18 +00:00
dee90c84a7 Allow gemini a few more commands 2026-04-05 17:38:47 +00:00
4 changed files with 43 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

@@ -34,6 +34,18 @@ commandPrefix = "git show"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "git log"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "git diff"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "mkdir"
@@ -82,3 +94,21 @@ toolName = "run_shell_command"
commandPrefix = "ls"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "find"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "head"
decision = "allow"
priority = 100
[[rule]]
toolName = "run_shell_command"
commandPrefix = "echo"
decision = "allow"
priority = 100

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;