mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-11 15:06:37 +02:00
Reorganize project layout and add wg port option
This commit is contained in:
parent
f5a2346ee7
commit
ee9830b87f
9 changed files with 165 additions and 153 deletions
|
@ -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
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue