From 11d99a0715cf201a660e33d911c953313fec3796 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 21 Sep 2025 20:34:58 -0700 Subject: add support for managing secrets with gnu stow --- nix/modules/home/user.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nix/modules/home/user.nix') diff --git a/nix/modules/home/user.nix b/nix/modules/home/user.nix index 6602232..59a11bf 100644 --- a/nix/modules/home/user.nix +++ b/nix/modules/home/user.nix @@ -53,7 +53,8 @@ torsocks tor-browser # For transfering secrets onto new system - magic-wormhole + magic-wormhole stow + # fonts nerd-fonts.iosevka noto-fonts noto-fonts-cjk-sans noto-fonts-emoji fira-code font-awesome_6 victor-mono (aspellWithDicts @@ -116,6 +117,14 @@ nixos-rebuild --sudo --ask-sudo-password --target-host "$1" switch --flake $HOME #!/bin/bash nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config $HOME/monorepo/nix/systems/spontaneity/hardware-configuration.nix --flake $HOME/monorepo/nix#spontaneity --target-host "$1" '') + (writeShellScriptBin "secrets" + '' +#!/bin/bash +cd "$HOME/secrets" +git pull # repo is over LAN +stow */ # manage secrets with gnu stow +cd "$HOME" + '') ] else [ pfetch -- cgit v1.3