moved openssh config into home manager configs
This commit is contained in:
parent
d760992a06
commit
2d5e37b1eb
6 changed files with 26 additions and 9 deletions
|
@ -3,5 +3,6 @@
|
|||
imports = [
|
||||
./flipperzero.nix
|
||||
./i18n.nix
|
||||
./openssh.nix
|
||||
];
|
||||
}
|
||||
|
|
11
modules/nixos-modules/home-manager/openssh.nix
Normal file
11
modules/nixos-modules/home-manager/openssh.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
users.users =
|
||||
lib.attrsets.mapAttrs (name: value: {
|
||||
openssh.authorizedKeys.keys = value.programs.openssh.authorizedKeys;
|
||||
})
|
||||
config.home-manager.users;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue