From c3c3d6f1fd19a5da015c9a9d3ae5c54f2d177be0 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 26 Aug 2025 21:36:16 -0500 Subject: reogranize files more only working on optiplex for now prepare for home manager refactoring --- home-manager/initial-home-setup.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 home-manager/initial-home-setup.nix (limited to 'home-manager/initial-home-setup.nix') diff --git a/home-manager/initial-home-setup.nix b/home-manager/initial-home-setup.nix new file mode 100644 index 0000000..4132386 --- /dev/null +++ b/home-manager/initial-home-setup.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, userDetails, ... }: { + home.activation = { + cloneRepos = lib.hm.dag.entryAfter ["writeBoundary"] '' + export PATH="${config.home.path}/bin:$PATH" + ${builtins.readFile ./resources/activation-scripts/clone-repos.sh} + ''; + linkZshProfile = lib.hm.dag.entryAfter ["writeBoundary"] '' + run ln -sf $VERBOSE_ARG $HOME/.config/zsh/zprofile $HOME/.zprofile + ''; + cleanupHome = lib.hm.dag.entryAfter ["writeBoundary"] '' + run rm -f $VERBOSE_ARG $HOME/{.zcompdump,.zshrc,.zsh_history,.bash_history} + ''; + mimewiz = lib.hm.dag.entryAfter ["writeBoundary"] '' + export PATH="${pkgs.xdg-utils}/bin:$PATH" + export PATH="$HOME/.local/bin/misc:$PATH" + run mimewiz -i # already verbose + ''; + createDirs = lib.hm.dag.entryAfter ["writeBoundary"] '' + run mkdir -p $VERBOSE_ARG ${ lib.concatStringsSep " " (lib.attrValues userDetails.userDirs) } + ''; + }; +} -- cgit v1.2.3