1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00

ssh: use hm lib

This commit is contained in:
RGBCube 2025-07-26 02:29:06 +03:00
parent 7f2a57a24d
commit 6b94e1cea1
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -24,12 +24,14 @@ in {
mode = "444"; mode = "444";
}; };
home-manager.sharedModules = [{ home-manager.sharedModules = [(homeArgs: let
home.activation.createControlPath = { lib' = homeArgs.lib;
after = [ "writeBoundary" ];
before = []; inherit (lib'.hm.dag) entryAfter;
data = "mkdir --parents ${controlPath}"; in {
}; home.activation.createControlPath = entryAfter [ "writeBoundary" ] /* bash */ ''
mkdir --parents ${controlPath}
'';
programs.ssh = enabled { programs.ssh = enabled {
controlMaster = "auto"; controlMaster = "auto";
@ -49,7 +51,7 @@ in {
}; };
}; };
}; };
}]; })];
environment.systemPackages = mkIf config.isDesktop [ environment.systemPackages = mkIf config.isDesktop [
pkgs.mosh pkgs.mosh