aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-10-27 15:22:48 +0100
committerIsabella Bastaja <isabella@sorre.xyz>2026-10-27 15:25:37 +0100
commit5358ac4de7b470c20a4c3e4988ae814f9e591b11 (patch)
treef8405ae1d91cf1617afcd0d19fc7662026186707 /hosts
parent629281ae1d10d3ceacd3f380f233c6adba3d062b (diff)
iso: remove isabella user, permit root ssh access (pubkey only)
Diffstat (limited to 'hosts')
-rw-r--r--hosts/iso/default.nix23
1 files changed, 7 insertions, 16 deletions
diff --git a/hosts/iso/default.nix b/hosts/iso/default.nix
index f96a593..b115106 100644
--- a/hosts/iso/default.nix
+++ b/hosts/iso/default.nix
@@ -8,19 +8,12 @@
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
];
- nix.settings.trusted-users = [ "@wheel" ];
users = {
- users.isabella = {
- isNormalUser = true;
- description = "Isabella Morgana Bastaja";
- extraGroups = [ "wheel" ];
- initialPassword = "isabella";
- openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4aG8NI25TgjcDevjsY/Y6d3iYsQxSEtIpsqprMHmad osiris@underworld"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUcWGKF3uIf/gqbo1/lxb8XLoi67Bc2tVi1Bd/Ddhoz isabella@wonderland"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvtzeVHgenfSUrpZeyZBoBTzN96rdYMy3KEJoRXja0O isabella@nyaan"
- ];
- };
+ users.root.openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4aG8NI25TgjcDevjsY/Y6d3iYsQxSEtIpsqprMHmad osiris@underworld"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUcWGKF3uIf/gqbo1/lxb8XLoi67Bc2tVi1Bd/Ddhoz isabella@wonderland"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvtzeVHgenfSUrpZeyZBoBTzN96rdYMy3KEJoRXja0O isabella@nyaan"
+ ];
mutableUsers = false;
};
console.keyMap = "us";
@@ -30,11 +23,9 @@
ports = [ 22 ];
openFirewall = true;
settings = {
- PermitRootLogin = "no";
+ PermitRootLogin = "yes";
PasswordAuthentication = false;
- AllowUsers = [
- "isabella"
- ];
+ AllowUsers = [ "root" ];
};
};