From b378d982c0fe83a535c445fbd5a55142920d390e Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Tue, 18 Apr 2023 19:27:47 -0400 Subject: [PATCH] setup script --- playbooks/nix-setup | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 playbooks/nix-setup diff --git a/playbooks/nix-setup b/playbooks/nix-setup new file mode 100755 index 0000000..898c32a --- /dev/null +++ b/playbooks/nix-setup @@ -0,0 +1,9 @@ +#!/bin/bash +HOME_MANAGER="$HOME/.config/home-manager" +mkdir -p "${HOME_MANAGER}" +mkdir -p ~/.config/nix + +ln -s ~/.dotfiles/nix/.nix-channels ~/.nix-channels +ln -s ~/.dotfiles/nix/home-manager/home.nix "${HOME_MANAGER}/home.nix" +ln -s ~/.dotfiles/nix/home-manager/flake.nix "${HOME_MANAGER}/flake.nix" +ln -s ~/.dotfiles/nix/home-manager/flake.lock "${HOME_MANAGER}/flake.lock"