Compare commits

...

6 commits

Author SHA1 Message Date
9bca0209b5 add readme 2024-11-08 02:27:27 +01:00
6400b58390 add bootstrap script 2024-11-08 02:09:50 +01:00
f2424b47a5 clean up shell scripts 2024-11-08 01:50:03 +01:00
c28c226a43 Merge branch 'main' of https://github.com/thilobillerbeck/dotfiles 2024-11-08 01:45:40 +01:00
61dd752a08 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661?narHash=sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo%2BGYdmEPaYi1bZB6uf0%3D' (2024-11-03)
  → 'github:nix-community/home-manager/2f607e07f3ac7e53541120536708e824acccfaa8?narHash=sha256-0kZL4m%2BbKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc%3D' (2024-11-05)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7ffd9ae656aec493492b44d0ddfb28e79a1ea25d?narHash=sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY%3D' (2024-11-02)
  → 'github:NixOS/nixpkgs/4aa36568d413aca0ea84a1684d2d46f55dbabad7?narHash=sha256-Zwl8YgTVJTEum%2BL%2B0zVAWvXAGbWAuXHax3KzuejaDyo%3D' (2024-11-05)
2024-11-08 00:25:10 +01:00
2336228020 flake.lock: Update
Flake lock file updates:

• Updated input 'dagger':
    'github:dagger/nix/fddec739bab363dd03b0bbd1e7d36c285508666c?narHash=sha256-UCuWoY%2BT0fT2lT0/EusCDVVMidzeAzh9JpYyD2bTkqA%3D' (2024-10-20)
  → 'github:dagger/nix/3b0c63231ef7210285d04f6ba8de59aa610cd052?narHash=sha256-ITUysrF3ZghjA5mLAPSubabDMBf0FctkGhfQ8FmXV%2B8%3D' (2024-10-31)
• Updated input 'home-manager':
    'github:nix-community/home-manager/1e27f213d77fc842603628bcf2df6681d7d08f7e?narHash=sha256-gBOVJv%2Bq6Mx8jGvwX7cE6J8%2BsZmi1uxpRVsO7WxvVuQ%3D' (2024-10-20)
  → 'github:nix-community/home-manager/8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661?narHash=sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo%2BGYdmEPaYi1bZB6uf0%3D' (2024-11-03)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/04f8a11f247ba00263b060fbcdc95484fd046104?narHash=sha256-2ntUG%2BNJKdfhlrh/tF%2BjOU0fOesO7lm5ZZVSYitsvH8%3D' (2024-10-20)
  → 'github:nix-community/nix-index-database/cc2ddbf2df8ef7cc933543b1b42b845ee4772318?narHash=sha256-/MK6QU4iOozJ4oHTfZipGtOgaT/uy/Jm4foCqHQeYR4%3D' (2024-11-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0?narHash=sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c%2BcHUJwA%3D' (2024-10-18)
  → 'github:NixOS/nixpkgs/7ffd9ae656aec493492b44d0ddfb28e79a1ea25d?narHash=sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY%3D' (2024-11-02)
• Updated input 'nixpkgs-update':
    'github:ryantm/nixpkgs-update/2063b5e8465c04ca9e541fe14a0b121cb21cc301?narHash=sha256-6ld8eO7cwm7hGT9qXmioFSEW6tHmgP5z/oKTkBpAUFM%3D' (2024-10-14)
  → 'github:ryantm/nixpkgs-update/525c2e488ad26cd46878fd93337521bf42e598a9?narHash=sha256-rGp0I9m3/nDV70nRXvdCv2QiAGPOaRm92rISXDxNUJM%3D' (2024-10-31)
2024-11-03 18:20:58 +01:00
4 changed files with 30 additions and 22 deletions

6
README.md Normal file
View file

@ -0,0 +1,6 @@
# My Dotfiles
And some desktop configs for NixOS which I currently not use
```
curl -sSf -L https://raw.githubusercontent.com/thilobillerbeck/dotfiles/refs/heads/main/bootstrap.sh | sh
```

24
bootstrap.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/env bash
# Install nix if not already installed
if ! command -v nix &> /dev/null
then
echo "Nix is not installed. Installing..."
curl -sSf -L https://install.lix.systems/lix | sh -s -- install
echo "Nix installed. Please restart your shell."
exit 0
else
echo "Nix is already installed."
fi
# Clone the dotfiles repo into the proper directory
if [ ! -d "$HOME/.config/home-manager" ]; then
echo "Cloning dotfiles repo..."
git clone https://github.com/thilobillerbeck/dotfiles.git $HOME/.config/home-manager
else
echo "Dotfiles repo already cloned."
fi
# Install home-manager
cd $HOME/.config/home-manager
nix run .#homeConfigurations.$USER@$(hostname).activationPackage

View file

@ -1,22 +0,0 @@
#/bin/bash -e
# Install nix
sh <(curl -L https://nixos.org/nix/install) --no-daemon
source $HOME/.nix-profile/etc/profile.d/nix.sh
# Install home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
# Install nixgl
nix-channel --add https://github.com/guibou/nixGL/archive/main.tar.gz nixgl
nix-channel --update
nix-shell '<home-manager>' -A install
# use my home-manager config
rm -rf ~/.config/home-manager
git clone https://git.thilo-billerbeck.com/thilobillerbeck/home-manager.git ~/.config/home-manager
# switch configs
home-manager switch