From 23362280205caeee842dc045c264ea06be632711 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Sun, 3 Nov 2024 18:20:58 +0100 Subject: [PATCH 1/5] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- flake.lock | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index 4b63a9a..51a7ce6 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1729457257, - "narHash": "sha256-UCuWoY+T0fT2lT0/EusCDVVMidzeAzh9JpYyD2bTkqA=", + "lastModified": 1730382544, + "narHash": "sha256-ITUysrF3ZghjA5mLAPSubabDMBf0FctkGhfQ8FmXV+8=", "owner": "dagger", "repo": "nix", - "rev": "fddec739bab363dd03b0bbd1e7d36c285508666c", + "rev": "3b0c63231ef7210285d04f6ba8de59aa610cd052", "type": "github" }, "original": { @@ -93,11 +93,11 @@ ] }, "locked": { - "lastModified": 1729459288, - "narHash": "sha256-gBOVJv+q6Mx8jGvwX7cE6J8+sZmi1uxpRVsO7WxvVuQ=", + "lastModified": 1730633670, + "narHash": "sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo+GYdmEPaYi1bZB6uf0=", "owner": "nix-community", "repo": "home-manager", - "rev": "1e27f213d77fc842603628bcf2df6681d7d08f7e", + "rev": "8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661", "type": "github" }, "original": { @@ -213,11 +213,11 @@ ] }, "locked": { - "lastModified": 1729394935, - "narHash": "sha256-2ntUG+NJKdfhlrh/tF+jOU0fOesO7lm5ZZVSYitsvH8=", + "lastModified": 1730604744, + "narHash": "sha256-/MK6QU4iOozJ4oHTfZipGtOgaT/uy/Jm4foCqHQeYR4=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "04f8a11f247ba00263b060fbcdc95484fd046104", + "rev": "cc2ddbf2df8ef7cc933543b1b42b845ee4772318", "type": "github" }, "original": { @@ -271,11 +271,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1728865681, - "narHash": "sha256-6ld8eO7cwm7hGT9qXmioFSEW6tHmgP5z/oKTkBpAUFM=", + "lastModified": 1730338630, + "narHash": "sha256-rGp0I9m3/nDV70nRXvdCv2QiAGPOaRm92rISXDxNUJM=", "owner": "ryantm", "repo": "nixpkgs-update", - "rev": "2063b5e8465c04ca9e541fe14a0b121cb21cc301", + "rev": "525c2e488ad26cd46878fd93337521bf42e598a9", "type": "github" }, "original": { @@ -286,11 +286,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1729256560, - "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=", + "lastModified": 1730531603, + "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0", + "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", "type": "github" }, "original": { From 61dd752a0813d300f64eed5685db70c894ff3f94 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Fri, 8 Nov 2024 00:25:10 +0100 Subject: [PATCH 2/5] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 51a7ce6..2526662 100644 --- a/flake.lock +++ b/flake.lock @@ -93,11 +93,11 @@ ] }, "locked": { - "lastModified": 1730633670, - "narHash": "sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo+GYdmEPaYi1bZB6uf0=", + "lastModified": 1730837930, + "narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=", "owner": "nix-community", "repo": "home-manager", - "rev": "8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661", + "rev": "2f607e07f3ac7e53541120536708e824acccfaa8", "type": "github" }, "original": { @@ -286,11 +286,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1730531603, - "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", + "lastModified": 1730785428, + "narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", + "rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7", "type": "github" }, "original": { From f2424b47a5b6a210bf303e136f41f1ee1312f114 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Fri, 8 Nov 2024 01:50:03 +0100 Subject: [PATCH 3/5] clean up shell scripts --- home-manager/install.sh | 22 ---------------------- link.sh => nixos/link.sh | 0 2 files changed, 22 deletions(-) delete mode 100644 home-manager/install.sh rename link.sh => nixos/link.sh (100%) diff --git a/home-manager/install.sh b/home-manager/install.sh deleted file mode 100644 index 2441b86..0000000 --- a/home-manager/install.sh +++ /dev/null @@ -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 '' -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 \ No newline at end of file diff --git a/link.sh b/nixos/link.sh similarity index 100% rename from link.sh rename to nixos/link.sh From 6400b58390fcb2757e58812dee45d5c0c02e7bc9 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Fri, 8 Nov 2024 02:09:50 +0100 Subject: [PATCH 4/5] add bootstrap script --- bootstrap.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..afd0086 --- /dev/null +++ b/bootstrap.sh @@ -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 \ No newline at end of file From 9bca0209b5d01adce5ae9025bfb52c058ff3eea3 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck Date: Fri, 8 Nov 2024 02:27:27 +0100 Subject: [PATCH 5/5] add readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..793c407 --- /dev/null +++ b/README.md @@ -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 +``` \ No newline at end of file