From ed68061997f40f37593d499595a843367f2c6405 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sun, 13 Oct 2024 16:58:43 +0300 Subject: [PATCH] installer automatic user and host creation --- flake.nix | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 63d8b2c..5629808 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,7 @@ forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); overlays = import ./overlays { inherit inputs; }; nixosConfigurations = { - unkown = nixpkgs.lib.nixosSystem { + ${hostname} = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs user hostname; }; modules = [ ./hosts/${hostname} ]; }; diff --git a/install.sh b/install.sh index 8f01748..9e66ff8 100755 --- a/install.sh +++ b/install.sh @@ -175,7 +175,7 @@ sed -i "s/common.services.vfio.enable = .*/common.services.vfio.enable = $vfio_r echo -e "$GREEN Configuration has been updated with your preferences $ENDCOLOR" sleep 2 - sudo nixos-rebuild boot --flake .#unkown + sudo nixos-rebuild boot --flake .#${new_hostname} echo -e "$GREEN Reboot after completion your initial password is 4321 $ENDCOLOR"