Nix Cookbook: Difference between revisions

imported>Cynic
m optimise-store is a deprecated syntax; newer nix uses "store optimise"
imported>Dehnert
add options for the ssh GSSAPI error that don't just remove the config option
Line 217: Line 217:
==== Bad configuration option: gssapikexalgorithms ====
==== Bad configuration option: gssapikexalgorithms ====


Found when using an SSH binary from Nix on typically RPM-based distros like CentOS, Fedora, Scientific Linux, Redhat, etc. '''The quick fix:''' Just comment out the configuration option in the ssh config file, you probably don't need it.
Found when using an SSH binary from Nix on typically RPM-based distros like CentOS, Fedora, Scientific Linux, Redhat, etc. Possible fixes, from least to most invasive:
# '''The quick fix:''' Just comment out the configuration option in the ssh config file
# If you want to keep the option in but don't need it to work (e.g., you're sharing a config across systems, but only use GSSAPI/Kerberos on another system): add {{ic|IgnoreUnknown GSSAPI*}} to your ssh configuration
# Install the {{ic|openssh_gssapi}} package instead of {{ic|openssh}}. This will fix ssh used directly, but some dependencies may still use the non-GSSAPI package.
# Force specific other packages to build with the GSSAPI version: for example, you might add <code>(git-repo.override { openssh = openssh_gssapi; })</code> to your {{ic|environment.systemPackages}} list (if git-repo is the problematic package), or use [[overlays]] like: <syntaxhighlight lang="nix">
  nixpkgs.overlays = [
    (final: prev: {
      mosh = prev.mosh.override { openssh = prev.openssh_gssapi; };
    })
  ];
</syntaxhighlight>(which will fix [[mosh]] used as a dependency too)
# Force all packages that depend on openssh to use openssh_gssapi instead: <syntaxhighlight lang="nix">
nixpkgs.overlays = [
  (final: prev: { openssh = prev.openssh_gssapi; } )
];
</syntaxhighlight>
 


==== Desktop environment does not find .desktop files ====
==== Desktop environment does not find .desktop files ====