summaryrefslogtreecommitdiff
path: root/hosts/omega-relay/disko.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/omega-relay/disko.nix')
-rw-r--r--hosts/omega-relay/disko.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/hosts/omega-relay/disko.nix b/hosts/omega-relay/disko.nix
index adfaf71..2de6943 100644
--- a/hosts/omega-relay/disko.nix
+++ b/hosts/omega-relay/disko.nix
@@ -1,22 +1,22 @@
{ config, lib, ... }:
let
cfg = config.hosts.omega-relay;
-in
+in
{
options.hosts.omega-relay = with lib; {
root_device = mkOption {
- type = types.path;
- default = "/dev/sda";
- example = "/dev/sda";
+ type = types.path;
+ default = "/dev/sda";
+ example = "/dev/sda";
description = "Root device for disko and grub";
- };
+ };
do_disko = mkOption {
- type = types.bool;
- default = !config.addons.virtualisation.isTestVM;
- description = "Whenever to do disko or not.";
- };
- };
+ type = types.bool;
+ default = !config.addons.virtualisation.isTestVM;
+ description = "Whenever to do disko or not.";
+ };
+ };
config = lib.mkIf (cfg.do_disko) ({
services.btrfs.autoScrub = {
enable = true;