Move home-manager to new location

This commit is contained in:
Tobias Reisinger 2023-04-02 20:55:57 +02:00
parent 7db3c9c499
commit 531786f609
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 4 additions and 10 deletions

View file

@ -12,7 +12,7 @@ declare -A mapper=(
["environment.local"]="$HOME/.config/environment.local" ["environment.local"]="$HOME/.config/environment.local"
["git"]="$HOME/.config/git/config" ["git"]="$HOME/.config/git/config"
["git-ignore"]="$HOME/.config/git/ignore" ["git-ignore"]="$HOME/.config/git/ignore"
["home-manager"]="$HOME/.config/nixpkgs/home.nix" ["home-manager"]="$HOME/.config/home-manager/home.nix"
["nvim"]="$HOME/.config/nvim/" ["nvim"]="$HOME/.config/nvim/"
["nvim.packer"]="$HOME/.config/nvim/lua/user/packer.lua" ["nvim.packer"]="$HOME/.config/nvim/lua/user/packer.lua"
["polybar"]="$HOME/.config/polybar" ["polybar"]="$HOME/.config/polybar"

View file

@ -20,7 +20,7 @@ _autoinstall_base () {
"https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \ "https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \
"$HOME/.local/bin/git-fire" "$HOME/.local/bin/git-fire"
hm_config="$HOME/.config/nixpkgs" hm_config="$HOME/.config/home-manager"
ln -sf "$hm_config/$(cat /proc/sys/kernel/hostname)-$(whoami).nix" "$hm_config/home.nix" ln -sf "$hm_config/$(cat /proc/sys/kernel/hostname)-$(whoami).nix" "$hm_config/home.nix"
return 0 return 0

View file

@ -10,6 +10,6 @@
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
rustdesk # remote desktop tool #rustdesk # remote desktop tool
]; ];
} }

View file

@ -1,12 +1,6 @@
source "$HOME/.config/environment" source "$HOME/.config/environment"
if [ ! -f "$ZSH/oh-my-zsh.sh" ] autoinstall git "https://github.com/ohmyzsh/ohmyzsh.git" "$ZSH"
then
autoinstall git "https://github.com/ohmyzsh/ohmyzsh.git" "$ZSH"
#echo "Installing oh-my-zsh"
#RUNZSH="no" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" > /dev/null
#mv "$ZSH/.zshrc.pre-oh-my-zsh" "$ZSH/.zshrc"
fi
autoinstall base autoinstall base