mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 05:24:52 +00:00
fix: actually do home activation
This commit is contained in:
parent
3656ed7e8f
commit
6f5b4725e7
@ -1,5 +1,5 @@
|
||||
{ ... }: {
|
||||
|
||||
imports = [ ./neovim ./notes.nix ];
|
||||
imports = [ ./neovim ./notes.nix ./dotfiles.nix ];
|
||||
|
||||
}
|
||||
|
@ -5,12 +5,14 @@
|
||||
home.activation = {
|
||||
|
||||
# Always clone dotfiles repository if it doesn't exist
|
||||
cloneDotfiles = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
if [ ! -d "${config.dotfilesPath}" ]; then
|
||||
$DRY_RUN_CMD mkdir --parents $VERBOSE_ARG $(dirname ${config.dotfilesPath})
|
||||
$DRY_RUN_CMD ${pkgs.git}/bin/git clone https://github.com/nmasur/dotfiles ${config.dotfilesPath}
|
||||
fi
|
||||
'';
|
||||
cloneDotfiles =
|
||||
config.home-manager.users.${config.user}.lib.dag.entryAfter
|
||||
[ "writeBoundary" ] ''
|
||||
if [ ! -d "${config.dotfilesPath}" ]; then
|
||||
$DRY_RUN_CMD mkdir --parents $VERBOSE_ARG $(dirname ${config.dotfilesPath})
|
||||
$DRY_RUN_CMD ${pkgs.git}/bin/git clone https://github.com/nmasur/dotfiles ${config.dotfilesPath}
|
||||
fi
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user