about summary refs log tree commit diff
path: root/users/wpcarro/configs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/configs/default.nix')
-rw-r--r--users/wpcarro/configs/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/wpcarro/configs/default.nix b/users/wpcarro/configs/default.nix
new file mode 100644
index 000000000000..5b0b6a7dcc31
--- /dev/null
+++ b/users/wpcarro/configs/default.nix
@@ -0,0 +1,11 @@
+{ pkgs, ... }:
+
+{
+  install = pkgs.writeShellScript "install-configs" ''
+    cd "$WPCARRO/configs" && ${pkgs.stow}/bin/stow --target="$HOME" .
+  '';
+
+  uninstall = pkgs.writeShellScript "uninstall-configs" ''
+    cd "$WPCARRO/configs" && ${pkgs.stow}/bin/stow --delete --target="$HOME" .
+  '';
+}