inital attempt at getting lxc working. Currently home-manager is broken.
This commit is contained in:
parent
6f5169947a
commit
7d1ae316bb
6 changed files with 120 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue