inital attempt at getting lxc working. Currently home-manager is broken.

This commit is contained in:
Gabe Venberg 2024-06-04 23:33:32 -05:00
parent 6f5169947a
commit 7d1ae316bb
6 changed files with 120 additions and 16 deletions

View file

@ -3,6 +3,8 @@
pkgs,
inputs,
outputs,
configLib,
lib,
...
}: {
services.openssh = {
@ -14,6 +16,9 @@
environment.systemPackages = with pkgs; [
kitty.terminfo
];
users.users.root.openssh.authorizedKeys.keys =
lib.mkDefault (configLib.dirToStrings "${inputs.nix-secrets}/public-keys");
# if it can log into root, it should also be able to log in to the main user.
users.users.${config.host.user}.openssh.authorizedKeys.keys =
config.users.users.root.openssh.authorizedKeys.keys;