about summary refs log tree commit diff
path: root/hosts/phobos/disks.nix
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-09-06 23:10:25 +0200
committerBaitinq <[email protected]>2022-09-07 12:42:31 +0200
commita73d93704de272c2a2970a0f414056e3678da9a2 (patch)
tree9f8acaec5bbc03c2a89598e834156b109ad2dc40 /hosts/phobos/disks.nix
parentAdd irqbalance service (diff)
downloadnixos-config-a73d93704de272c2a2970a0f414056e3678da9a2.tar.gz
nixos-config-a73d93704de272c2a2970a0f414056e3678da9a2.tar.bz2
nixos-config-a73d93704de272c2a2970a0f414056e3678da9a2.zip
Add ability to create iso of nixosConfigurations
Diffstat (limited to '')
-rw-r--r--hosts/phobos/disks.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/phobos/disks.nix b/hosts/phobos/disks.nix
index 9f1906e..6f005bf 100644
--- a/hosts/phobos/disks.nix
+++ b/hosts/phobos/disks.nix
@@ -1,4 +1,4 @@
-{ config, lib, inputs, pkgs, modulesPath, ... }:
+{ config, lib, inputs, pkgs, modulesPath, isIso, ... }:
 {
   fileSystems."/" = {
     device = "none";
@@ -33,7 +33,7 @@
 
   swapDevices = [ ];
 
-  services.btrfs.autoScrub.enable = true;
+  services.btrfs.autoScrub.enable = if !isIso then true else false;
 
   zramSwap.enable = true;