installer automatic user and host creation
This commit is contained in:
parent
dae370bb59
commit
4506c4671c
2 changed files with 4 additions and 4 deletions
|
@ -30,8 +30,8 @@
|
|||
"x86_64-darwin"
|
||||
];
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
user = "nomad2";
|
||||
hostname = "unkown2";
|
||||
user = "nomad";
|
||||
hostname = "unkown";
|
||||
in
|
||||
{
|
||||
packages =
|
||||
|
|
|
@ -29,8 +29,8 @@ monitor_config_file="./home/$new_user/$new_hostname.nix"
|
|||
current_user=$(logname)
|
||||
|
||||
|
||||
if [ ! -f "./hosts/common/users/nomad.nix" ]; then
|
||||
echo -e "$RED Source file nomad.nix does not exist! $ENDCOLOR"
|
||||
if [[ ! -f "./hosts/common/users/nomad.nix" && ! -d "./hosts/unkown/" ]]; then
|
||||
echo -e "$RED Source files nomad.nix or ./hosts/unkown directory does not exist! $ENDCOLOR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue