From 6c3b7268754fa58a19056359497fc7f58a9b01ef Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Thu, 2 Oct 2025 13:17:19 -0500 Subject: [PATCH] feat: added secret copy command to nushell configuration --- .gitmodules | 6 ++++++ flake.lock | 6 +++--- inputs/dotfiles | 2 +- modules/home/cli/dev/nushell/default.nix | 9 +++++++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.gitmodules b/.gitmodules index 7b607d4..f15d2fd 100755 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,9 @@ [submodule "dotfiles"] path = inputs/dotfiles url = git@github.com:C4theBomb/dotfiles.git +[submodule "inputs/yumevim/lua"] + path = inputs/yumevim/lua + url = git@github.com:c4patino/yumevim.git +[submodule "inputs/yumevim/nix"] + path = inputs/yumevim/nix + url = git@github.com:c4patino/yumevim-nix.git diff --git a/flake.lock b/flake.lock index 49bdac8..b4080bd 100755 --- a/flake.lock +++ b/flake.lock @@ -178,11 +178,11 @@ "dotfiles": { "flake": false, "locked": { - "lastModified": 1758426370, - "narHash": "sha256-nczcZn/ftB/T6aut/J1IeeoijkbpizwhWcLvdnlWxYw=", + "lastModified": 1759428852, + "narHash": "sha256-RVi1h3zY0IaunkOzO/MjP7sIHwew8ZNi8jlCfPzlIPA=", "owner": "c4patino", "repo": "dotfiles", - "rev": "c24ec8d062fc6afc2bb85b4984d0229e7e8d56db", + "rev": "53042c2cc93779db99bd99e1d4355d71a1e927b7", "type": "github" }, "original": { diff --git a/inputs/dotfiles b/inputs/dotfiles index c24ec8d..53042c2 160000 --- a/inputs/dotfiles +++ b/inputs/dotfiles @@ -1 +1 @@ -Subproject commit c24ec8d062fc6afc2bb85b4984d0229e7e8d56db +Subproject commit 53042c2cc93779db99bd99e1d4355d71a1e927b7 diff --git a/modules/home/cli/dev/nushell/default.nix b/modules/home/cli/dev/nushell/default.nix index 876b463..0d75766 100755 --- a/modules/home/cli/dev/nushell/default.nix +++ b/modules/home/cli/dev/nushell/default.nix @@ -52,8 +52,13 @@ in { # take command def take [path: string] { - mkdir $path - cd $path + mkdir $path + cd $path + } + + # secret copy command + def sc [path: string] { + open /run/secrets/$path | wl-copy } '';