diff --git a/nixos/bootstrap.sh b/nixos/bootstrap.sh index 073cb86..0ab1e6f 100755 --- a/nixos/bootstrap.sh +++ b/nixos/bootstrap.sh @@ -69,11 +69,11 @@ function help_and_exit() { echo " -n specify target_hostname of the target host to deploy the nixos config on." echo " -d specify ip or domain to the target host." echo " -a specify the name of the user that will act as the system administrator" - echo " (in my configurations this is 'sysAdmin')" + echo " (in my configurations this is 'roy')" echo echo "OPTIONS:" echo " -u specify target_user with sudo access. nix-config will be cloned to their home." - echo " Default=root." + echo " Default=root. (in my config this is 'roy')" echo " --port specify the ssh port to use for remote access. Default=${ssh_port}." echo " --debug Enable debug mode." echo " -h | --help Print this help." diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 5c64c98..eea1981 100755 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -255,32 +255,23 @@ in # }; # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.sysAdmin = { - isNormalUser = true; - extraGroups = [ - "wheel" - "networkManager" - ]; - # created with mkpasswd - hashedPassword = "$y$j9T$ILYm49Ylk4h6Wforpdw161$ds0DvzLQkbh0o3vN6D.gZ4KMo..0AOR/DwNcWtY0nH2"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEQyjykrRpkgMFpNAR2G1rbofqbtcuLwIYzgqH85QCn roydumblauskas@gmail.com" - ]; - }; - users.users.roy = { isNormalUser = true; extraGroups = [ "wheel" ]; - hashedPassword = "$y$j9T$GigbbrHNEe.fhkEYbbYGc1$7dS10OH5LGoZtCfoDy82H71nZVbCgGHdkwVwxZpGUY4"; + hashedPassword = "$y$j9T$qHYfvijvytC69cjEWTHYA/$YF6ig1hNvkTQi0UffZP1dpilS.8O28qEY4bfdvRTXYA"; + # laptop and desktop openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEQyjykrRpkgMFpNAR2G1rbofqbtcuLwIYzgqH85QCn roydumblauskas@gmail.com" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPERQEHVwrtsWOpu1BgT7b1WNe4ShCy4bXWoGWvYENBw roydumblauskas@gmail.com" ]; shell = pkgs.fish; }; users.users.root = { + # laptop and desktop openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEQyjykrRpkgMFpNAR2G1rbofqbtcuLwIYzgqH85QCn roydumblauskas@gmail.com" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPERQEHVwrtsWOpu1BgT7b1WNe4ShCy4bXWoGWvYENBw roydumblauskas@gmail.com" ]; };