nixpkgs/nixos/modules/system/boot
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
..
loader nixos: Fix detection of btrfs root volume 2017-10-11 04:30:52 +02:00
coredump.nix
emergency-mode.nix
grow-partition.nix nixos: introduce boot.growPartition (#33521) 2018-01-06 13:52:51 +00:00
initrd-network.nix nixos/initrd-network: fix docbook syntax 2018-01-22 00:01:49 +00:00
initrd-ssh.nix initrd-ssh: generate hostkeys if absent 2017-12-03 02:27:29 +00:00
kernel.nix nixos/boot: allow kernel.printk override (#34958) 2018-02-17 06:47:33 +00:00
kexec.nix
luksroot.nix luksRoot: add the missing ECB dependency to fix XTS support, resolves #30940 2017-12-22 07:50:09 +02:00
modprobe.nix
networkd.nix systemd: 234 -> 237 2018-02-13 01:24:24 +01:00
pbkdf2-sha512.c
plymouth.nix plymouth: add breeze-plymouth as default theme 2017-12-11 20:42:00 +00:00
resolved.nix systemd: 234 -> 237 2018-02-13 01:24:24 +01:00
shutdown.nix
stage-1-init.sh makeModulesClosure: support firmware 2018-02-16 00:11:07 +02:00
stage-1.nix makeModulesClosure: support firmware 2018-02-16 00:11:07 +02:00
stage-2-init.sh
stage-2.nix
systemd-lib.nix
systemd-nspawn.nix systemd-nspawn: relax PrivateUsers check 2017-05-27 08:27:47 +01:00
systemd-unit-options.nix systemd: better document enabled, wantedBy, and requiredBy (#29453) 2017-09-16 12:48:16 +02:00
systemd.nix systemd: 234 -> 237 2018-02-13 01:24:24 +01:00
timesyncd.nix
tmp.nix