Installer update
This commit is contained in:
parent
852427a8ee
commit
b6e198ddf3
20
README.md
Normal file
20
README.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Boussole Desktop
|
||||
|
||||
## Installation
|
||||
|
||||
**WARNING** installer considers that '~/afs/' exists
|
||||
|
||||
'''sh
|
||||
git clone https://forge.oblic-parallels.fr/guillm/boussole.git
|
||||
cd boussole
|
||||
./install.sh
|
||||
'''
|
||||
|
||||
## Uninstallation
|
||||
|
||||
**WARNING** This will reset all your config files in your AFS
|
||||
|
||||
'''sh
|
||||
cd ~/afs
|
||||
git restore .
|
||||
'''
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# Essentials
|
||||
nix profile install nixpkgs#helix
|
||||
# Shell
|
||||
nix profile install nixpkgs#zsh nixpkgs#fzf nixpkgs#zoxide nixpkgs#eza
|
||||
# Desktop
|
||||
nix profile install nixpkgs#hyprland nixpkgs#rofi-wayland nixpkgs#hyprlock nixpkgs#waybar nixpkgs#xwayland nixpkgs#foot nixpkgs#hyprpaper
|
||||
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
|
||||
|
||||
echo "Start ?"
|
||||
read
|
||||
hyprland
|
||||
14
install.sh
Executable file
14
install.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
# .confs
|
||||
cp -r ./.config/* ~/afs/.confs/config
|
||||
cp -r ./.local/* ~/afs/.confs/local
|
||||
cp -r ./.p10k.zsh ~/afs/.confs/p10k.zsh
|
||||
cp -r ./.zshrc ~/afs/.confs/zshrc
|
||||
cp -r ./afs-install.sh ~/afs/.confs/install.sh
|
||||
|
||||
# install.sh (launched at session startup)
|
||||
cp -r ./scripts/afs-install.sh ~/afs/.confs/install.sh
|
||||
|
||||
# boussole.sh (launched by the user)
|
||||
cp -r ./scripts/boussole.sh ~/afs/boussole.sh
|
||||
|
||||
echo Done
|
||||
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…
Reference in a new issue