installer automatic user and host creation

This commit is contained in:
nomadics9 2024-10-13 16:58:43 +03:00
parent 4506c4671c
commit ed68061997
2 changed files with 2 additions and 2 deletions

View file

@ -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} ];
};

View file

@ -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"