3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/programs
Alyssa Ross 262447705c nixos/ssh: add programs.ssh.knownHostsFiles option
The programs.ssh.knownHosts.*.publicKeyFile is broken, because it's
scoped to a set of host names, but to insert those host names on each
line of the file we'd have to parse out blank lines and comments, so
only the first line works.  It would be much easier all round if users
just provided known hosts files in the normal format, and we pointed
ssh directly to them.  This way, it would be possible to have multiple
keys for a single host (which is extremely common due to multiple
algorithms being commonplace).

We add an option for this instead of relying on extraConfig, because
we need to make sure /etc/ssh/ssh_known_hosts is always included to
ensure programs.ssh.knownHosts keeps working.
/etc/ssh/ssh_known_hosts2 is another OpenSSH default that seems a bit
weird, but there's no real reason to change that so we'll leave it.
2022-01-11 20:02:26 +00:00
..
bash modules/programs/bash: Fix ShellCheck warnings 2021-09-06 08:49:34 +09:00
command-not-found command-not-found: remove NIX_AUTO_INSTALL 2021-10-04 12:43:39 -07:00
digitalbitbox nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
zsh treewide: set defaultText for options using simple path defaults 2021-12-09 01:12:13 +01:00
adb.nix
appgate-sdp.nix
atop.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
autojump.nix
bandwhich.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
bash-my-aws.nix
bcc.nix bcc: move from linux-kernels packages to normal packages 2021-12-04 21:07:09 +09:00
browserpass.nix
calls.nix
captive-browser.nix nixos/captive-browser: add defaultText for browser 2021-12-09 01:42:24 +01:00
ccache.nix nixos: make setgid wrappers root-owned 2021-10-03 11:44:57 +02:00
cdemu.nix
chromium.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
clickshare.nix
cnping.nix nixos/cnping: init 2021-10-14 21:27:38 +03:00
criu.nix
dconf.nix Revert "nixos: make GIO_EXTRA_MODULES a session variable" 2021-12-08 19:54:18 +01:00
dmrconfig.nix nixos/make-options-doc: turn relatedPackages into links 2022-01-02 19:46:13 +01:00
droidcam.nix
environment.nix less: improve default settings (#139988) 2021-10-05 11:13:48 +02:00
evince.nix nixos/evince: add option for specify package 2021-10-17 11:42:22 +08:00
extra-container.nix nixos/extra-container: init 2021-09-30 22:52:14 +02:00
feedbackd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
file-roller.nix nixos/file-roller: add option for specify package 2021-10-22 10:26:27 +08:00
firejail.nix firejail: clarify wrappedBinaries option description 2022-01-01 18:13:21 +13:00
fish.nix
fish_completion-generator.patch
flashrom.nix
flexoptix-app.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
freetds.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
fuse.nix
gamemode.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
geary.nix
git.nix nixos/git: change config type 2021-10-16 22:39:56 -04:00
gnome-disks.nix
gnome-documents.nix
gnome-terminal.nix
gnupg.nix nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
gpaste.nix
gphoto2.nix
hamster.nix
htop.nix nixos/htop: add module 2021-10-05 06:00:43 +02:00
iftop.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
iotop.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
java.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
kbdlight.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
kdeconnect.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
less.nix less: improve default settings (#139988) 2021-10-05 11:13:48 +02:00
liboping.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
light.nix
mininet.nix
mosh.nix nixos: make setgid wrappers root-owned 2021-10-03 11:44:57 +02:00
msmtp.nix nixos: add implict security.wrappers options 2021-09-13 13:48:13 +02:00
mtr.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nano.nix
neovim.nix nixos/neovim: fix withRuby, add with{Python3,NodeJs} 2021-11-07 19:40:07 +01:00
nm-applet.nix
noisetorch.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
npm.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
oblogout.nix
pantheon-tweaks.nix nixos/pantheon-tweaks: init 2021-09-18 22:49:53 +08:00
partition-manager.nix
phosh.nix
plotinus.nix nixos/plotinus: fix evaluation 2021-09-22 15:53:29 +02:00
plotinus.xml
proxychains.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
qt5ct.nix qt5ct: move to qt5-packages 2021-12-27 11:03:07 -03:00
screen.nix
seahorse.nix
sedutil.nix
shadow.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
singularity.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
slock.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
spacefm.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ssh.nix nixos/ssh: add programs.ssh.knownHostsFiles option 2022-01-11 20:02:26 +00:00
ssmtp.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
steam.nix
sway.nix Merge pull request #122995 from primeos/sway-install-default-wallpaper 2021-11-21 21:57:49 +01:00
sysdig.nix
system-config-printer.nix
systemtap.nix
thefuck.nix
tilp2.nix
tmux.nix nixos/make-options-doc: turn relatedPackages into links 2022-01-02 19:46:13 +01:00
traceroute.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
tsm-client.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
turbovnc.nix
udevil.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
usbtop.nix
vim.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
virtualbox.nix
wavemon.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
waybar.nix
weylus.nix nixos/weylus: init 2021-09-02 06:33:23 -06:00
wireshark.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
wshowkeys.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
xfs_quota.nix
xonsh.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
xss-lock.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
xwayland.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
yabar.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
zmap.nix