ssh user certs in home-manager
This commit is contained in:
@@ -67,7 +67,10 @@ in
|
||||
|
||||
flake.wrappers.signUserWrapper = inputs.wrappers.lib.wrapModule ({config, lib, wlib, ... }: {
|
||||
imports = [ sshCertConfig ];
|
||||
config = let cfg = config.ssh-new; in {
|
||||
config =
|
||||
let
|
||||
cfg = config.ssh-new;
|
||||
in {
|
||||
binName = "ssh-user-cert-sign";
|
||||
package = config.pkgs.step-cli;
|
||||
args = [ "ssh" "certificate" "--sign" ]
|
||||
@@ -84,11 +87,14 @@ in
|
||||
|
||||
flake.wrappers.userCheckWrapper = inputs.wrappers.lib.wrapModule ({config, lib, wlib, ... }: {
|
||||
imports = [ sshCertConfig ];
|
||||
config = {
|
||||
config =
|
||||
let
|
||||
cfg = config.ssh-new;
|
||||
in {
|
||||
binName = "ssh-user-cert-check";
|
||||
package = config.pkgs.openssh;
|
||||
exePath = lib.getExe' config.pkgs.openssh "ssh-keygen";
|
||||
args = [ "-Lf" "${config.ssh-new.user.keyFile}-cert.pub" ];
|
||||
args = [ "-Lf" "$HOME/.ssh/${config.ssh-new.user.keyFile}-cert.pub" ];
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user