mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 03:33:55 -05:00
flake: add install script support for aarch64-linux
This commit is contained in:
parent
63a1f5a3b1
commit
e4e9c20504
|
@ -47,7 +47,12 @@
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
] (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
|
] (system: inputs.nixpkgs.legacyPackages.${system}.alejandra);
|
||||||
|
|
||||||
packages."x86_64-linux".default = inputs.nixpkgs.legacyPackages."x86_64-linux".writeShellScriptBin "clean-install" ''
|
packages =
|
||||||
|
inputs.nixpkgs.lib.genAttrs [
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-linux"
|
||||||
|
] (system: {
|
||||||
|
default = inputs.nixpkgs.legacyPackages."${system}".writeShellScriptBin "clean-install" ''
|
||||||
# Check if an argument is provided
|
# Check if an argument is provided
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "Error: Please provide a valid hostname as an argument."
|
echo "Error: Please provide a valid hostname as an argument."
|
||||||
|
@ -71,6 +76,7 @@
|
||||||
# Install NixOS with the updated flake input and root settings
|
# Install NixOS with the updated flake input and root settings
|
||||||
sudo nixos-install --no-root-password --root /mnt --flake $FLAKE
|
sudo nixos-install --no-root-password --root /mnt --flake $FLAKE
|
||||||
'';
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
nixosModules.default =
|
nixosModules.default =
|
||||||
import ./nixosModules inputs;
|
import ./nixosModules inputs;
|
||||||
|
|
Loading…
Reference in a new issue