3
0
Fork 0
forked from mirrors/nixpkgs
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 systemd-coredump: Add systemd service and fix sysctl pattern. 2016-07-10 18:07:37 +10:00
emergency-mode.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00
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 Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
luksroot.nix luksRoot: add the missing ECB dependency to fix XTS support, resolves #30940 2017-12-22 07:50:09 +02:00
modprobe.nix nixos treewide: don't set MODULE_DIR 2016-08-19 17:56:54 +03:00
networkd.nix systemd: 234 -> 237 2018-02-13 01:24:24 +01:00
pbkdf2-sha512.c Update to the Yubikey PBA 2014-02-08 14:59:52 +01:00
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 Don't run hwclock if /dev/rtc doesn't exist 2014-05-05 16:47:51 +02:00
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: shellsheck recommendations 2017-04-05 21:40:57 +02:00
stage-2.nix stage-2: replace readonly-mountpoint by findmnt 2017-04-05 09:05:18 +02:00
systemd-lib.nix nixos: escape brackets in systemd units 2017-04-12 15:56:26 +02:00
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 ntp: make timesyncd the new default 2016-12-17 00:00:45 +01:00
tmp.nix nixos: tmp on tmpfs option 2014-07-30 16:19:26 +02:00