From b1ebf74fa68bd311b1f53b62562b152d91404c16 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Tue, 2 Feb 2021 08:35:54 +0100 Subject: [PATCH] Add sudo, openssh, sysrq --- configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configuration.nix b/configuration.nix index 11706bd..ac975fc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -11,5 +11,18 @@ programs.mosh.enable = true; boot.zfs.extraPools = ["bold"]; boot.supportedFilesystems = ["zfs"]; + boot.kernel.sysctl."kernel.sysrq" = 1; + + services.openssh.enable = true; + networking.firewall.rejectPackets = true; + + users.users = { + root.openssh.authorizedKeys.keyFiles = [ ./linus.pub ]; + linus = { + isNormalUser = true; + extraGroups = ["wheel"]; + openssh.authorizedKeys.keyFiles = [ ./linus.pub ]; + }; + }; system.stateVersion = "20.09"; }