replace programs.mako with services.mako

This commit is contained in:
notgne2 2023-03-13 04:59:30 -07:00
parent 6a7b8b55b7
commit 527a6bc246
No known key found for this signature in database
4 changed files with 13 additions and 12 deletions

View file

@ -15,15 +15,16 @@ in {
};
config = lib.mkIf (cfg.sock != null) {
systemd.services.ssh-agent-nix-proxy = {
wantedBy = [ "nix-daemon.service" ];
partOf = [ "nix-daemon.service" ];
serviceConfig = {
ExecStart = "${pkgs.socat}/bin/socat UNIX-LISTEN:/run/nix-ssh-agent,mode=770,group=nixbld,user=root,reuseaddr,fork UNIX-CONNECT:${cfg.sock}";
Restart = "always";
};
};
# systemd.services.ssh-agent-nix-proxy = {
# wantedBy = [ "nix-daemon.service" ];
# partOf = [ "nix-daemon.service" ];
# serviceConfig = {
# ExecStart = "${pkgs.socat}/bin/socat UNIX-LISTEN:/run/nix-ssh-agent,mode=770,group=nixbld,user=root,reuseaddr,fork UNIX-CONNECT:${cfg.sock}";
# Restart = "always";
# };
# };
systemd.services.nix-daemon.environment.SSH_AUTH_SOCK = "/run/nix-ssh-agent";
# systemd.services.nix-daemon.environment.SSH_AUTH_SOCK = "/run/nix-ssh-agent";
systemd.services.nix-daemon.environment.SSH_AUTH_SOCK = cfg.sock;
};
}