From 377e5a37d2eb3153fe00417fe6c9ff9f4ddef124 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Fri, 15 Nov 2024 21:55:47 -0800 Subject: [PATCH] feat(home): Add isDesktop --- modules/home/options/isDesktop/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/home/options/isDesktop/default.nix diff --git a/modules/home/options/isDesktop/default.nix b/modules/home/options/isDesktop/default.nix new file mode 100644 index 0000000..16fff65 --- /dev/null +++ b/modules/home/options/isDesktop/default.nix @@ -0,0 +1,11 @@ +{ lib, namespace, ... }: +let + inherit (lib) mkOption types; +in +{ + options.${namespace}.isDesktop = mkOption { + type = with types; bool; + default = false; + description = "Whether this machine is used as a graphical desktop."; + }; +}