Installer update
This commit is contained in:
parent
852427a8ee
commit
b6e198ddf3
5 changed files with 98 additions and 12 deletions
35
scripts/afs-install.sh
Executable file
35
scripts/afs-install.sh
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/sh
|
||||
|
||||
rplc_ln="\e[1A\e[K"
|
||||
echo
|
||||
|
||||
# Dotfiles (default)
|
||||
echo -e "${rplc_ln}Linking dotfiles"
|
||||
mkdir -p "$HOME/.local/share"
|
||||
mkdir -p "$HOME/.local/.cache"
|
||||
dot_list="bashrc config emacs gitconfig gitignore jnewsrc mozilla msmtprc muttrc signature slrnrc ssh thunderbird vim vimrc Xdefaults clang-format bash_profile local/bin local/share/icons"
|
||||
for f in $dot_list; do
|
||||
rm -rf "$HOME/.$f"
|
||||
ln -s "$AFS_DIR/.confs/$f" "$HOME/.$f"
|
||||
done
|
||||
|
||||
|
||||
# Instant dotfiles
|
||||
# echo -e "${rplc_ln}Copying dotfiles"
|
||||
# instant_list="zshrc p10k.zsh local/share/zinit local/share/rofi"
|
||||
# mkdir -p "$HOME/.local/share"
|
||||
# for f in $instant_list; do
|
||||
# rm -rf "$HOME/.$f"
|
||||
# cp -r "$AFS_DIR/.confs/$f" "$HOME/.$f"
|
||||
# done
|
||||
|
||||
|
||||
# Documents
|
||||
echo -e "${rplc_ln}Linking documents"
|
||||
doc_list="Pictures Workplan"
|
||||
for f in $doc_list; do
|
||||
rm -rf "$HOME/$f"
|
||||
ln -s "$AFS_DIR/$f" "$HOME/$f"
|
||||
done
|
||||
|
||||
echo -e "Config: done !"
|
||||
29
scripts/boussole.sh
Executable file
29
scripts/boussole.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
rplc_ln="\e[1A\e[K"
|
||||
echo
|
||||
|
||||
# Essentials
|
||||
echo -e "${rplc_ln}Installing essentials"
|
||||
nix profile install nixpkgs#helix
|
||||
# Shell
|
||||
echo -e "${rplc_ln}Installing cli utilities"
|
||||
nix profile install nixpkgs#zsh nixpkgs#fzf nixpkgs#zoxide nixpkgs#eza
|
||||
# Desktop
|
||||
echo -e "${rplc_ln}Installing desktop"
|
||||
nix profile install nixpkgs#hyprland nixpkgs#rofi-wayland nixpkgs#hyprlock nixpkgs#waybar nixpkgs#xwayland nixpkgs#foot nixpkgs#hyprpaper
|
||||
echo -e "${rplc_ln}Installing desktop utilities"
|
||||
nix profile install nixpkgs#swaynotificationcenter nixpkgs#nerd-fonts.jetbrains-mono nixpkgs#nerd-fonts.dejavu-sans-mono
|
||||
nix profile install nixpkgs#grim nixpkgs#slurp nixpkgs#wl-clipboard
|
||||
|
||||
# Instant dotfiles
|
||||
echo -e "${rplc_ln}Copying dotfiles"
|
||||
instant_list="zshrc p10k.zsh local/share/zinit local/share/rofi"
|
||||
mkdir -p "$HOME/.local/share"
|
||||
for f in $instant_list; do
|
||||
rm -rf "$HOME/.$f"
|
||||
cp -r "$AFS_DIR/.confs/$f" "$HOME/.$f"
|
||||
done
|
||||
|
||||
|
||||
echo e "${rplc_ln}Start ?"
|
||||
read
|
||||
hyprland
|
||||
Loading…
Add table
Add a link
Reference in a new issue