about summary refs log tree commit diff
path: root/hosts/phobos/disks.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-06 23:10:25 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-07 12:42:31 +0200
commit9e6ac0a2848a0b6e38de7f84bbab5862c14c33cf (patch)
tree8475ca278ca71d6dec0a89473fc16dd325ead8f6 /hosts/phobos/disks.nix
parentAdd irqbalance service (diff)
downloadnixos-config-9e6ac0a2848a0b6e38de7f84bbab5862c14c33cf.tar.gz
nixos-config-9e6ac0a2848a0b6e38de7f84bbab5862c14c33cf.tar.bz2
nixos-config-9e6ac0a2848a0b6e38de7f84bbab5862c14c33cf.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;