From 638c36e45a0ca19fe628bdb0198f8ae2f5f25c4a Mon Sep 17 00:00:00 2001 From: cnst Date: Sun, 13 Oct 2024 18:09:50 +0200 Subject: [PATCH] removing display --- home/modules/display/monitors/default.nix | 60 ----------------------- 1 file changed, 60 deletions(-) delete mode 100644 home/modules/display/monitors/default.nix diff --git a/home/modules/display/monitors/default.nix b/home/modules/display/monitors/default.nix deleted file mode 100644 index 0255a4cd..00000000 --- a/home/modules/display/monitors/default.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ - lib, - config, - ... -}: let - inherit (lib) mkOption types; - cfg = config.userModules.display.monitors; -in { - options.userModules.display.monitors = mkOption { - type = types.listOf ( - types.submodule { - options = { - name = mkOption { - type = types.str; - example = "DP-1"; - }; - primary = mkOption { - type = types.bool; - default = false; - }; - width = mkOption { - type = types.int; - example = 1920; - }; - height = mkOption { - type = types.int; - example = 1080; - }; - refreshRate = mkOption { - type = types.int; - default = 60; - }; - position = mkOption { - type = types.str; - default = "auto"; - }; - enabled = mkOption { - type = types.bool; - default = true; - }; - workspace = mkOption { - type = types.nullOr types.str; - default = null; - }; - }; - } - ); - default = []; - }; - config = { - assertions = [ - { - assertion = - ((lib.length cfg) != 0) - -> ((lib.length (lib.filter (m: m.primary) cfg)) == 1); - message = "Exactly one monitor must be set to primary."; - } - ]; - }; -}