about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Gazzetta2024-05-31 10:50:51 +0200
committerFrancesco Gazzetta2024-05-31 17:19:23 +0000
commitd4a08c14ed06b42c32b5437f33ba55bc3b80c0d9 (patch)
treec4cbb7c673aec2ab26e68d3c2b74ea67b8966235
parentc41846f7587a15ba188d63294f1f1c5cca5ed9a5 (diff)
nixos/ladybird: init
(cherry picked from commit 899c54229146f9c980b5e5811cb6250834d868db)
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/programs/ladybird.nix14
2 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 3a59e1245505..a23d3a52bdd5 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -218,6 +218,7 @@
   ./programs/kbdlight.nix
   ./programs/kclock.nix
   ./programs/kdeconnect.nix
+  ./programs/ladybird.nix
   ./programs/lazygit.nix
   ./programs/kubeswitch.nix
   ./programs/less.nix
diff --git a/nixos/modules/programs/ladybird.nix b/nixos/modules/programs/ladybird.nix
new file mode 100644
index 000000000000..43bfe445ef58
--- /dev/null
+++ b/nixos/modules/programs/ladybird.nix
@@ -0,0 +1,14 @@
+{ config, pkgs, lib, ... }:
+
+let
+  cfg = config.programs.ladybird;
+in {
+  options = {
+    programs.ladybird.enable = lib.mkEnableOption "the Ladybird web browser";
+  };
+
+  config = lib.mkIf cfg.enable {
+    environment.systemPackages = [ pkgs.ladybird ];
+    fonts.fontDir.enable = true;
+  };
+}