From 3c9b2115b6e614b614d722b9a36dd926c5eabc40 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 12 May 2022 11:15:43 -0400 Subject: [PATCH] refactor(form): set default into for servers --- hosts/Infini-SERVER/hardware-configuration.nix | 5 ----- modules/modules/hardware/form.nix | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/Infini-SERVER/hardware-configuration.nix b/hosts/Infini-SERVER/hardware-configuration.nix index c14cc3f..2f7fb60 100644 --- a/hosts/Infini-SERVER/hardware-configuration.nix +++ b/hosts/Infini-SERVER/hardware-configuration.nix @@ -103,9 +103,4 @@ in ]; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; - - info = { - monitors = 0; - model = "Headless Server"; - }; } diff --git a/modules/modules/hardware/form.nix b/modules/modules/hardware/form.nix index 67f8c49..9e48023 100644 --- a/modules/modules/hardware/form.nix +++ b/modules/modules/hardware/form.nix @@ -96,6 +96,11 @@ in # raspberrypi-eeprom # ]; }) - (mkIf cfg.server { }) + (mkIf cfg.server { + info = { + monitors = mkDefault 0; + model = mkDefault "Headless Server"; + }; + }) ]; }