summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-07-05 13:13:47 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-07-05 14:54:26 +0200
commit19e33831c698da6b2e8a5d9a49b3f63b896fe219 (patch)
tree5f00e6750e94a96f053fcf62bb64cef2a11f1eb3 /nixos/modules/config
parentd73da5b868387eea41203a3daba7d9f6ab880b1b (diff)
downloadnixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.tar
nixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.tar.gz
nixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.tar.bz2
nixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.tar.lz
nixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.tar.xz
nixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.tar.zst
nixpkgs-19e33831c698da6b2e8a5d9a49b3f63b896fe219.zip
nixos/config/nix: Move nix.check*
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/nix.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/config/nix.nix b/nixos/modules/config/nix.nix
index af2d8678b6c..3161f130921 100644
--- a/nixos/modules/config/nix.nix
+++ b/nixos/modules/config/nix.nix
@@ -134,6 +134,22 @@ in
 
   options = {
     nix = {
+      checkConfig = mkOption {
+        type = types.bool;
+        default = true;
+        description = lib.mdDoc ''
+          If enabled, checks that Nix can parse the generated nix.conf.
+        '';
+      };
+
+      checkAllErrors = mkOption {
+        type = types.bool;
+        default = true;
+        description = lib.mdDoc ''
+          If enabled, checks the nix.conf parsing for any kind of error. When disabled, checks only for unknown settings.
+        '';
+      };
+
       settings = mkOption {
         type = types.submodule {
           freeformType = semanticConfType;