Reorganize project layout and add wg port option

This commit is contained in:
Kevin Kandlbinder 2023-01-04 13:49:59 +01:00
parent f5a2346ee7
commit ee9830b87f
9 changed files with 165 additions and 153 deletions

View file

@ -1,21 +0,0 @@
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.kevin.ssh;
in {
options.kevin.ssh = {
server.enable = mkEnableOption "kevins ssh";
authorized.kevin = mkEnableOption "set authorized for kevin";
};
config = mkMerge [
(mkIf cfg.server.enable {
kevin.networking.ssh.enable = true;
})
(mkIf cfg.authorized.kevin {
users.users."kevin".openssh.authorizedKeys.keyFiles = [
/etc/nixos/ssh/kevin/authorized_keys
];
})
];
}