summary refs log tree commit diff
path: root/nixos/modules/system/activation/no-clone.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/system/activation/no-clone.nix')
-rw-r--r--nixos/modules/system/activation/no-clone.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/no-clone.nix b/nixos/modules/system/activation/no-clone.nix
new file mode 100644
index 00000000000..912420347dc
--- /dev/null
+++ b/nixos/modules/system/activation/no-clone.nix
@@ -0,0 +1,8 @@
+{ lib, ... }:
+
+with lib;
+
+{
+  boot.loader.grub.device = mkOverride 0 "nodev";
+  specialisation = mkOverride 0 {};
+}