ssh: don't install a client by default (#4016)
Make use of the recently added nullable `mkPackageOption` feature to disable installing an SSH client by default: most people should use the client provided by their system.
This commit is contained in:
parent
6a19225683
commit
2d963854ae
12 changed files with 8 additions and 24 deletions
|
|
@ -6,8 +6,6 @@ with lib;
|
|||
config = {
|
||||
programs.ssh = { enable = true; };
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ with lib;
|
|||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContent \
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
includes = [ "config.d/*" "other/dir" ];
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContains home-files/.ssh/config "Include config.d/* other/dir"
|
||||
|
|
|
|||
|
|
@ -51,8 +51,6 @@ with lib;
|
|||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContent \
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ with lib;
|
|||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContent \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue