Compare commits

..

No commits in common. "2cbf2f83a49754486ddf4992d739061eaf278154" and "759ad1c5b53cfe978405b35bcc5623b77ccb8969" have entirely different histories.

View file

@ -12,6 +12,7 @@ in {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
#../../flakes/wishlist/wishlist.nix
#../modules/server/nginx.nix #../modules/server/nginx.nix
#../modules/server/ssh.nix #../modules/server/ssh.nix
#../modules/server/fail2ban.nix #../modules/server/fail2ban.nix
@ -88,8 +89,12 @@ in {
]; ];
}; };
# TODO: reduce security implications of subspace subspace = let
subspace = { # override
wishlistBash =
pkgs.bash.override {
};
in {
isNormalUser = true; isNormalUser = true;
shell = pkgs.bash; shell = pkgs.bash;
home = "/home/subspace"; home = "/home/subspace";
@ -97,6 +102,15 @@ in {
wishlist wishlist
]; ];
}; };
# user for friends to ssh into
friends = {
isNormalUser = true;
shell = pkgs.bash;
home = "/home/friends"; # TEMP: remove and replace with home-manager
packages = with pkgs; [
];
};
}; };
}; };
@ -182,9 +196,9 @@ in {
enable = true; enable = true;
ports = [22]; ports = [22];
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = true;
PermitRootLogin = "no"; PermitRootLogin = "no";
AllowUsers = ["ae" "subspace"]; # DO NOT ALLOW ALL AllowUsers = ["ae" "subspace"]; # allow all users by default
UseDns = true; UseDns = true;
X11Forwarding = false; X11Forwarding = false;
}; };