From 77b23ce8e86b24e6aed30fadced85d6a2d7dd0a7 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Sun, 25 Jan 2026 14:13:52 +0100 Subject: Nix fmt --- hosts/omega-relay/disko.nix | 79 +++++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 39 deletions(-) (limited to 'hosts/omega-relay/disko.nix') diff --git a/hosts/omega-relay/disko.nix b/hosts/omega-relay/disko.nix index 9694e2a..307f6de 100644 --- a/hosts/omega-relay/disko.nix +++ b/hosts/omega-relay/disko.nix @@ -1,52 +1,53 @@ -{pkgs, config, lib, ...}: { +{ config, lib, ... }: +{ config = lib.mkIf (!config.addons.virtualisation.isTestVM) ({ - services.btrfs.autoScrub = { - enable = true; - interval = "weekly"; - }; + services.btrfs.autoScrub = { + enable = true; + interval = "weekly"; + }; - boot.loader.grub.device = "/dev/sda"; - # Workaround - boot.loader.grub.devices = lib.mkForce ["/dev/sda"]; - boot.loader.efi.canTouchEfiVariables = false; + boot.loader.grub.device = "/dev/sda"; + # Workaround + boot.loader.grub.devices = lib.mkForce [ "/dev/sda" ]; + boot.loader.efi.canTouchEfiVariables = false; - # TODO: Mount points + # TODO: Mount points - # Disko for formatting - disko.devices = { - disk = { - main-disk = { - device = "/dev/sda"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - BOOT = { - type = "EF02"; - size = "1M"; - }; - ESP = { - type = "EF00"; - size = "128M"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; - }; + # Disko for formatting + disko.devices = { + disk = { + main-disk = { + device = "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + BOOT = { + type = "EF02"; + size = "1M"; + }; + ESP = { + type = "EF00"; + size = "128M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "btrfs"; - mountpoint = "/"; - }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "btrfs"; + mountpoint = "/"; }; }; }; }; }; }; + }; }); } -- cgit v1.3.1