Compare commits

...

3 Commits

Author SHA1 Message Date
chn
0c49c71899 services.nginx.applications.main: fix 2023-12-29 20:22:21 +08:00
chn
b0e543d324 packages.server.ssh: enable ssh agent forward 2023-12-29 20:22:02 +08:00
chn
51c8a516ff packages.server: remove gnupg agent 2023-12-29 15:33:06 +08:00
3 changed files with 9 additions and 3 deletions

View File

@@ -108,7 +108,6 @@ inputs:
nix-index-database.comma.enable = true; nix-index-database.comma.enable = true;
nix-index.enable = true; nix-index.enable = true;
command-not-found.enable = false; command-not-found.enable = false;
gnupg.agent = { enable = true; enableSSHSupport = true; };
autojump.enable = true; autojump.enable = true;
git = git =
{ {

View File

@@ -96,7 +96,13 @@ inputs:
else [] else []
)) ))
(attrsToList servers))); (attrsToList servers)));
programs.ssh = { enableAskPassword = true; askPassword = "${inputs.pkgs.systemd}/bin/systemd-ask-password"; }; programs.ssh =
{
startAgent = true;
enableAskPassword = true;
askPassword = "${inputs.pkgs.systemd}/bin/systemd-ask-password";
extraConfig = "AddKeysToAgent yes";
};
nixos.users.sharedModules = nixos.users.sharedModules =
[(hmInputs: { [(hmInputs: {
config.programs.ssh = config.programs.ssh =

View File

@@ -7,7 +7,8 @@ inputs:
config = config =
let let
inherit (inputs.config.nixos.services.nginx.applications) main; inherit (inputs.config.nixos.services.nginx.applications) main;
in inherit (inputs.lib) mkIf;
in mkIf main.enable
{ {
nixos.services.nginx.https."chn.moe".location = nixos.services.nginx.https."chn.moe".location =
{ {