aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-07-19 00:37:50 -0700
committerCaroline Larimore <caroline@larimo.re>2024-07-19 00:37:50 -0700
commit036e6e8d3959f9490bd54819a5efe574306b4b6f (patch)
tree4b8046209c61d2eb0799d338dabf6377b0a0e67f
parent132ffeae5b7d4415a34d6c57748c193febe1bac9 (diff)
Enable ssh on copenhagen
-rw-r--r--hosts/copenhagen/configuration.nix28
1 files changed, 17 insertions, 11 deletions
diff --git a/hosts/copenhagen/configuration.nix b/hosts/copenhagen/configuration.nix
index d05d9a0..84761fc 100644
--- a/hosts/copenhagen/configuration.nix
+++ b/hosts/copenhagen/configuration.nix
@@ -17,18 +17,11 @@
"c" = {
isNormalUser = true;
- password = "password";
extraGroups = [ "wheel" "minecraft" ];
+ openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDO8JxqS7B2n3YlNtlVMZGARi+GG/z7wLiiyl52qSZc caroline@larimo.re" ];
};
};
- environment.systemPackages = with pkgs; [
- (writeShellScriptBin "rb" "sudo nixos-rebuild switch --flake /etc/nixos#copenhagen")
- (writeShellScriptBin "rbf" "sudo nixos-rebuild switch --flake path:/etc/nixos#copenhagen")
-
- ffmpeg
- ];
-
roles = {
minecraft = {
enable = true;
@@ -46,9 +39,22 @@
};
};
- # services = {
- # pcscd.enable = true;
- # };
+ services = {
+ openssh = {
+ enable = true;
+ settings = {
+ PermitRootLogin = "no";
+ PasswordAuthentication = false;
+ };
+ };
+ };
+
+ environment.systemPackages = with pkgs; [
+ (writeShellScriptBin "rb" "sudo nixos-rebuild switch --flake /etc/nixos#copenhagen")
+ (writeShellScriptBin "rbf" "sudo nixos-rebuild switch --flake path:/etc/nixos#copenhagen")
+
+ ffmpeg
+ ];
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.