installer automatic user and host creation
This commit is contained in:
parent
4506c4671c
commit
ed68061997
2 changed files with 2 additions and 2 deletions
|
@ -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} ];
|
||||
};
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue