installer automatic user and host creation

This commit is contained in:
nomadics9 2024-10-13 16:50:59 +03:00
parent dae370bb59
commit 4506c4671c
2 changed files with 4 additions and 4 deletions

View file

@ -30,8 +30,8 @@
"x86_64-darwin" "x86_64-darwin"
]; ];
forAllSystems = nixpkgs.lib.genAttrs systems; forAllSystems = nixpkgs.lib.genAttrs systems;
user = "nomad2"; user = "nomad";
hostname = "unkown2"; hostname = "unkown";
in in
{ {
packages = packages =

View file

@ -29,8 +29,8 @@ monitor_config_file="./home/$new_user/$new_hostname.nix"
current_user=$(logname) current_user=$(logname)
if [ ! -f "./hosts/common/users/nomad.nix" ]; then if [[ ! -f "./hosts/common/users/nomad.nix" && ! -d "./hosts/unkown/" ]]; then
echo -e "$RED Source file nomad.nix does not exist! $ENDCOLOR" echo -e "$RED Source files nomad.nix or ./hosts/unkown directory does not exist! $ENDCOLOR"
exit 1 exit 1
fi fi