From c9dc4923318e60b7440de972570be8dcedb02b41 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 10 Jan 2025 14:32:57 -0800 Subject: shell script post-install --- desktop/home.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/desktop/home.nix b/desktop/home.nix index 0143c00..c035c0f 100644 --- a/desktop/home.nix +++ b/desktop/home.nix @@ -14,7 +14,7 @@ in mkdir -p ${config.home.homeDirectory}/src ${pkgs.git}/bin/git clone https://git.nullring.xyz/publish-org-roam-ui.git ${config.home.homeDirectory}/src/publish-org-roam-ui fi - + if [ ! -d "${config.home.homeDirectory}/.password-store" ]; then ${pkgs.git}/bin/git clone ${vars.passwordRepo} ${config.home.homeDirectory}/.password-store fi @@ -65,6 +65,17 @@ in graphviz grim gum + (writeShellScriptBin "post-install" '' +if [ ! -d ~/toughnix ]; then + git clone https://git.nullring.xyz/toughnix.git ~/toughnix +fi + +cd ~/toughnix +vim desktop/vars.nix +vim desktop/sda-simple.nix +sudo nixos-rebuild switch --flake .#continuity +echo "Post install done! Now install your ssh and gpg keys." +'') helvum imagemagick inkscape -- cgit