nixpkgs/nixos/modules
Matthieu Coudron 1912870a6e nixos/boot: allow kernel.printk override (#34958)
At one point in my configuration I had:
boot.kernel.sysctl = {
      # https://unix.stackexchange.com/questions/13019/description-of-kernel-printk-values
      "kernel.printk" = "4	4	1	7";
};
which triggered:

error: The unique option `boot.kernel.sysctl.kernel.printk' is defined multiple times, in `/home/teto/dotfiles/nixpkgs/mptcp-unstable.nix' and `/home/teto/nixpkgs/nixos/modules/system/boot/kernel.nix'.
(use ‘--show-trace’ to show detailed location information)
Traceback (most recent call last):
  File "/home/teto/nixops/scripts/nixops", line 984, in <module>
    args.op()
  File "/home/teto/nixops/scripts/nixops", line 406, in op_deploy
    max_concurrent_activate=args.max_concurrent_activate)
  File "/home/teto/nixops/nixops/deployment.py", line 1045, in deploy
    self.run_with_notify('deploy', lambda: self._deploy(**kwargs))
  File "/home/teto/nixops/nixops/deployment.py", line 1034, in run_with_notify
    f()
  File "/home/teto/nixops/nixops/deployment.py", line 1045, in <lambda>
    self.run_with_notify('deploy', lambda: self._deploy(**kwargs))
  File "/home/teto/nixops/nixops/deployment.py", line 985, in _deploy
    self.configs_path = self.build_configs(dry_run=dry_run, repair=repair, include=include, exclude=exclude)
  File "/home/teto/nixops/nixops/deployment.py", line 653, in build_configs
    raise Exception("unable to build all machine configurations")
Exception: unable to build all machine configurations

This simple addition allows to override it.
2018-02-17 06:47:33 +00:00
..
config nixos/powerManagement: remove duplicate definition 2018-01-28 21:53:07 +01:00
hardware intel-ocl: r4.0-59481 -> 5.0-63503 2017-11-01 17:59:49 +00:00
i18n/input-method Remove top-level kde5 attribute 2017-02-27 11:49:10 -06:00
installer nixos/sd-image-armv7l-multiplatform: Port RPi config.txt changes from aarch64 image 2018-02-07 06:30:34 +02:00
misc Merge pull request #33700 from roberth/nixos-externalpkgs 2018-02-09 18:47:48 +00:00
profiles Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
programs programs.systemtap: add nixos option for installing systemtap 2018-02-15 09:10:32 +01:00
security nixos/pam: support for Google Authenticator 2018-02-09 21:09:03 -08:00
services Merge pull request #33954 from kuznero/pr/kubernetes 2018-02-16 13:56:59 +00:00
system nixos/boot: allow kernel.printk override (#34958) 2018-02-17 06:47:33 +00:00
tasks nixos/zfs: fix typo in enableLegacyCrypto description 2018-02-08 10:24:47 +00:00
testing nixos/qemu: Deduplicate QEMU serialDevice into qemu-flags.nix 2018-01-30 16:57:27 +02:00
virtualisation nixos/xen-dom0: add related packages, make it play well with them 2018-02-09 19:51:07 +00:00
module-list.nix programs.systemtap: add nixos option for installing systemtap 2018-02-15 09:10:32 +01:00
rename.nix nixos/xen-dom0: add related packages, make it play well with them 2018-02-09 19:51:07 +00:00