From c52415735f22e3106ff0575654c66d8743b95a7d Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sun, 24 Sep 2023 21:53:10 -0400
Subject: [PATCH] Added tqsl app

---
 config/common.nix          | 14 ++++++++++++++
 pkgs/util/default.nix      |  1 +
 pkgs/util/tqsl/config.nix  |  4 ++++
 pkgs/util/tqsl/default.nix | 10 ++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 pkgs/util/tqsl/config.nix
 create mode 100644 pkgs/util/tqsl/default.nix

diff --git a/config/common.nix b/config/common.nix
index 38f0a03..444c659 100644
--- a/config/common.nix
+++ b/config/common.nix
@@ -1066,6 +1066,20 @@
                     };
                   };
                 };
+                tqsl = lib.mkOption {
+                  type = lib.types.submodule {
+                    options = {
+                      enabled = lib.mkOption {
+                        type = lib.types.bool;
+                        default = false;
+                        example = true;
+                        description = ''
+                          Whether or not tqsl, the lotw logging app, has been installed.
+                        '';
+                      };
+                    };
+                  };
+                };
                 gotop = lib.mkOption {
                   type = lib.types.submodule {
                     options = {
diff --git a/pkgs/util/default.nix b/pkgs/util/default.nix
index 9862b73..a061927 100644
--- a/pkgs/util/default.nix
+++ b/pkgs/util/default.nix
@@ -26,5 +26,6 @@
     ./dnsutils
     ./inetutils
     ./ispell
+    ./tqsl
   ];
 }
diff --git a/pkgs/util/tqsl/config.nix b/pkgs/util/tqsl/config.nix
new file mode 100644
index 0000000..af8bd7d
--- /dev/null
+++ b/pkgs/util/tqsl/config.nix
@@ -0,0 +1,4 @@
+{ config, ... }:
+{
+  config.provides.util.tqsl.enabled = true;
+}
diff --git a/pkgs/util/tqsl/default.nix b/pkgs/util/tqsl/default.nix
new file mode 100644
index 0000000..cc8cb85
--- /dev/null
+++ b/pkgs/util/tqsl/default.nix
@@ -0,0 +1,10 @@
+{ pkgs, ... }: {
+  imports = [
+    ../common.nix
+    ./config.nix
+  ];
+
+  environment.systemPackages = with pkgs; [
+    tqsl
+  ];
+}
-- 
GitLab