Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/nixos/common: add initrd emergencyAccess #1401

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@
github-org-backup = ./modules/nixos/github-org-backup.nix;
hercules-ci = ./modules/nixos/hercules-ci.nix;
hydra = ./modules/nixos/hydra.nix;
emergency-access = ./modules/nixos/emergency-access.nix;
monitoring = ./modules/nixos/monitoring;
nur-update = ./modules/nixos/nur-update.nix;
remote-builder = ./modules/nixos/remote-builder.nix;
Expand Down
1 change: 0 additions & 1 deletion hosts/build02/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
inputs.self.nixosModules.common
inputs.self.nixosModules.builder
inputs.self.nixosModules.disko-zfs
inputs.self.nixosModules.emergency-access
];

# set in srvos, remove when reinstalling
Expand Down
3 changes: 3 additions & 0 deletions modules/nixos/common/security.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Make sure that the firewall is enabled, even if it's the default.
networking.firewall.enable = true;

# allow to access emergency shell with a password
boot.initrd.systemd.emergencyAccess = "$6$he2fblfl/H7I.kvz$WbSCMXu8ztmqfj5jG4czqvu/rkMHxufxqHgy1urzXFSN.jZB4QiW5lOjR08vk8pZTyim3TT1wFkMaNE9zZ3sc1";

services.openssh = {
hostKeys = [
{
Expand Down
4 changes: 0 additions & 4 deletions modules/nixos/emergency-access.nix

This file was deleted.