mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 18:17:44 +00:00
ssh: use hm lib
This commit is contained in:
parent
7f2a57a24d
commit
6b94e1cea1
1 changed files with 9 additions and 7 deletions
|
@ -24,12 +24,14 @@ in {
|
|||
mode = "444";
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
home.activation.createControlPath = {
|
||||
after = [ "writeBoundary" ];
|
||||
before = [];
|
||||
data = "mkdir --parents ${controlPath}";
|
||||
};
|
||||
home-manager.sharedModules = [(homeArgs: let
|
||||
lib' = homeArgs.lib;
|
||||
|
||||
inherit (lib'.hm.dag) entryAfter;
|
||||
in {
|
||||
home.activation.createControlPath = entryAfter [ "writeBoundary" ] /* bash */ ''
|
||||
mkdir --parents ${controlPath}
|
||||
'';
|
||||
|
||||
programs.ssh = enabled {
|
||||
controlMaster = "auto";
|
||||
|
@ -49,7 +51,7 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
}];
|
||||
})];
|
||||
|
||||
environment.systemPackages = mkIf config.isDesktop [
|
||||
pkgs.mosh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue