-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* π Nix Flakes Initial * π₯ Removed old configs * β¨ Nix Flakes Home-manager Builds! * β¨ Add 'pineapple' host! * π Initial 'cherry' host NixOS config * π Initial flake testing * π Flake testing * π Add exec permission * π Ahhhhh why * π Add experimental feature flag * π Fix hash * π Fix hash again * π Fix hash again again * π Build with dry-run * Updated dconf * Made some pineapple changes * π Update flake.lock * π Upgrade to 24.05 (Uakari)
- Loading branch information
Showing
31 changed files
with
891 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env bash | ||
# Originally from https://github.com/gvolpe/nix-config | ||
|
||
set +x | ||
|
||
build_ci_system() { | ||
export NIX_BUILD_VERSION=22.11 | ||
echo "$1" | ||
if [[ $1 == "cherry" ]]; then | ||
build_cherry_system | ||
elif [[ $1 == "pineapple" ]]; then | ||
build_pineapple_system | ||
else | ||
echo "Unknown option!" | ||
fi | ||
} | ||
|
||
build_cherry_system() { | ||
echo "π¨ Building cherry" | ||
echo $NIX_PATH | ||
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos | ||
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager | ||
sudo nix-channel --update | ||
|
||
echo "π§ͺ Testing system configurationβ¦" | ||
#NIX_PATH=/home/$USER/.nix-defexpr/channels:nixpkgs=channel:nixos-unstable nix-build '<nixpkgs/nixos>' \ | ||
# -I nixos-config=configuration.nix \ | ||
# -A system --dry-run | ||
nix build --dry-run --experimental-features 'nix-command flakes' '.#nixosConfigurations.cherry.config.system.build.toplevel' | ||
} | ||
|
||
build_pineapple_system() { | ||
echo "π¨ Building pineapple" | ||
echo $NIX_PATH | ||
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos | ||
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager | ||
sudo nix-channel --update | ||
|
||
echo "π§ͺ Testing system configurationβ¦" | ||
#NIX_PATH=/home/$USER/.nix-defexpr/channels:nixpkgs=channel:nixos-unstable nix-build '<nixpkgs/nixos>' \ | ||
# -I nixos-config=configuration.nix \ | ||
# -A system --dry-run | ||
nix build --dry-run --experimental-features 'nix-command flakes' '.#nixosConfigurations.pineapple.config.system.build.toplevel' | ||
} | ||
|
||
build_ci_system $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.