From 1a800d63058f98d3c2a0270b2e111f32c0f0369c Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 12 Oct 2023 12:04:12 +0200 Subject: [PATCH] enable SSH --- template/flake.nix | 7 +++++++ template/nitrokey.pub | 1 + 2 files changed, 8 insertions(+) create mode 100644 template/nitrokey.pub diff --git a/template/flake.nix b/template/flake.nix index b70f201..f9a2cba 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -45,6 +45,13 @@ #boot.loader.systemd-boot.enable = true; # when installing toggle this #boot.loader.efi.canTouchEfiVariables = false; + + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [ + (builtins.readFile ./nitrokey.pub) + ]; + + system.stateVersion = "23.05"; } ]; }; diff --git a/template/nitrokey.pub b/template/nitrokey.pub new file mode 100644 index 0000000..11a0611 --- /dev/null +++ b/template/nitrokey.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCpgihAg8Qzu5q+AGXHLR7p+rrS1yB0KlZb/Y/EwZT15EhEtsUMqBMRiY0TdjKQU0broyygZnymccLmCXvihEgk3zk/hP8VEDmN5wmE2tRBPR4lSjo8E1R8N79G+gaFkwi93QYh57MsGfa9k4tvGrJy0yaD7GrPqtQf+IIuvV14WJQAqnikTdbFqRjk5JGearYLU7jSKa+9NmR7JQ9NExoyIPgmQ/pd0Xc2qt8k5UGfz3HM9MAmIVQ30whK6m1iYZ8nxEidHrfreQx8NOa7ujo4zQnV1NYvRUjObr/qyIhPU6DYLT2mVRNupQFKx6LI38O4U13heugUFqJ3zvog3aDsriFiv8jzJAJvWXx7Q3TqKhqiG9VTkwBw1NDbCAOXKiEdMfiCYbdCfpNgdepU75bMloJcSQQVUqoH2tQhSbwKLuRFgOnyaHpvWbieXBRcUnfG8gg4p4jqiwx5laweEeOIOD/i7G1Mjx7Dj2ctnT/ILat/xsf+Y0W4eJr3bc5L9ghgw6wsKbNSqwjFUCFcHcARK3gvSH+hO2/BpgMVoyvZjO5PNuUqfsZ7bIIs5cDdyB/ly3irKuaRz1+3x1x4gPgSiOcji7HxPwogzhPsyfoRLHNt9tJ5X4nF2Iz1M5RTJpbZCi6yEj+9Q85FVjD76BEWuZe18kRrwhuLf/XgKdF9tQ== openpgp:0xA8B75370