Made the install script into one command
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
.Trash
|
.Trash
|
||||||
BrewFile.lock.json
|
BrewFile.lock.json
|
||||||
switch.log
|
switch.log
|
||||||
|
.vscode
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ The install script works on Linux and macOS.
|
|||||||
All configuration is done through home-manager.
|
All configuration is done through home-manager.
|
||||||
If you want to use this repository, I recommend forking it and editing home.nix to your liking.
|
If you want to use this repository, I recommend forking it and editing home.nix to your liking.
|
||||||
|
|
||||||
**Run `./install.sh`.**
|
Install: `sh <(curl -L https://raw.githubusercontent.com/TrudeEH/dotfiles/main/install.sh)`
|
||||||
|
|
||||||
Run `home-manager switch` to rebuild the config after changing it.
|
Run `home-manager switch` to rebuild the config after changing it.
|
||||||
|
|
||||||
|
|||||||
5
home.nix
5
home.nix
@@ -19,6 +19,8 @@
|
|||||||
fragments
|
fragments
|
||||||
pitivi
|
pitivi
|
||||||
pika-backup
|
pika-backup
|
||||||
|
element-desktop
|
||||||
|
openrgb
|
||||||
|
|
||||||
neofetch
|
neofetch
|
||||||
unzip
|
unzip
|
||||||
@@ -322,6 +324,9 @@
|
|||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
ritwickdey.liveserver
|
ritwickdey.liveserver
|
||||||
github.vscode-pull-request-github
|
github.vscode-pull-request-github
|
||||||
|
ms-toolsai.jupyter
|
||||||
|
ms-python.python
|
||||||
|
arrterian.nix-env-selector
|
||||||
]);
|
]);
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
|
|||||||
13
install.sh
13
install.sh
@@ -22,11 +22,18 @@ detectDistro() {
|
|||||||
|
|
||||||
d=$(detectDistro)
|
d=$(detectDistro)
|
||||||
if [[ $d == "Debian" ]]; then
|
if [[ $d == "Debian" ]]; then
|
||||||
sudo apt install -y curl
|
sudo apt install -y curl git
|
||||||
elif [[ $d == "Arch" ]]; then
|
elif [[ $d == "Arch" ]]; then
|
||||||
sudo pacman -Sy curl
|
sudo pacman -Sy curl git
|
||||||
elif [[ $d == "Fedora" ]]; then
|
elif [[ $d == "Fedora" ]]; then
|
||||||
sudo dnf install curl
|
sudo dnf install curl git
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $(pwd) != "$HOME/dotfiles" ]; then
|
||||||
|
cd $HOME
|
||||||
|
git clone https://github.com/TrudeEH/dotfiles
|
||||||
|
cd dotfiles
|
||||||
|
bash install.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! nix --version &>/dev/null; then
|
if ! nix --version &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user