From 571d56afe69d167e4406b249ccadd7f0f527d52c Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 3 Nov 2024 20:09:06 -0600 Subject: fix bugs --- flake.nix | 3 ++- modules/home/initial-home-setup.nix | 5 ++++- modules/home/resources/activation-scripts/clone-repos.sh | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 01dfee0..50510e2 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,7 @@ userDetails = { username = "timmy"; home.root = "/home/timmy"; - home.downloads = /home/timmy/dls; + home.downloads = "/home/timmy/dls"; email = "tjkeller.xyz"; fullname = "Tim Keller"; }; @@ -42,6 +42,7 @@ ./modules/root home-manager.nixosModules.home-manager { home-manager = { + backupFileExtension = "old"; useGlobalPkgs = true; useUserPackages = true; users.${userDetails.username} = import ./modules/home; diff --git a/modules/home/initial-home-setup.nix b/modules/home/initial-home-setup.nix index a7119b9..2348b79 100644 --- a/modules/home/initial-home-setup.nix +++ b/modules/home/initial-home-setup.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: { +{ config, lib, pkgs, userDetails, ... }: { home.activation = { cloneRepos = lib.hm.dag.entryAfter ["writeBoundary"] '' export PATH="${config.home.path}/bin:$PATH" @@ -14,5 +14,8 @@ export PATH="$HOME/.local/bin/misc:$PATH" run mimewiz # already verbose ''; + createDirs = lib.hm.dag.entryAfter ["writeBoundary"] '' + run mkdir -p $VERBOSE_ARG "${userDetails.home.downloads}" + ''; }; } diff --git a/modules/home/resources/activation-scripts/clone-repos.sh b/modules/home/resources/activation-scripts/clone-repos.sh index e25ef0c..0050359 100644 --- a/modules/home/resources/activation-scripts/clone-repos.sh +++ b/modules/home/resources/activation-scripts/clone-repos.sh @@ -1,6 +1,6 @@ #!/bin/sh -server="git@localgit:" +server="https://git.tjkeller.xyz/" clonemissing() { # clone to $2 @@ -17,6 +17,6 @@ clonemissing() { # # repo # clone to # link to clonemissing scripts.git $HOME/docs/src/scripts $HOME/.local/bin clonemissing dotconfig.git $HOME/docs/src/config $HOME/.config -clonemissing awesome $HOME/.config/awesome -clonemissing nvim $HOME/.config/nvim -clonemissing zsh $HOME/.config/zsh +clonemissing awesome $HOME/.config/awesome '' +clonemissing nvim $HOME/.config/nvim '' +clonemissing zsh $HOME/.config/zsh '' -- cgit v1.2.3