From 3b030a6b4efb7d107eb238a84433b7a7e762522b Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 20 Aug 2026 00:50:12 +0530 Subject: desktop: removed darkman and using gtk with hyprland for dark mode - darkman was adding additional complexity to the theming - most graphical applications already relied on gtk anyways - using the gtk the theme to set the colorscheme makes it more consistent --- modules/desktop/darkman/default.nix | 55 ------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 modules/desktop/darkman/default.nix (limited to 'modules/desktop/darkman/default.nix') diff --git a/modules/desktop/darkman/default.nix b/modules/desktop/darkman/default.nix deleted file mode 100644 index a7bf598..0000000 --- a/modules/desktop/darkman/default.nix +++ /dev/null @@ -1,55 +0,0 @@ -# Automatic dark and light mode switching based on time of day -{ - config, - lib, - pkgs, - ... -}: -{ - options.desktop.darkman = { - package = lib.mkOption { - type = lib.types.package; - readOnly = true; - default = config.services.darkman.package; - description = "The darkman package to use."; - }; - }; - - config = lib.mkIf config.desktop.enable { - services.darkman = { - enable = true; - settings = { - portal = true; - lat = 0; - lng = 0; - }; - }; - - xdg.portal = { - enable = true; - extraPortals = [ pkgs.xdg-desktop-portal-hyprland ]; - config.common = { - default = [ "hyprland" ]; - "org.freedesktop.impl.portal.Settings" = "darkman"; - }; - }; - - # Always dark by default - systemd.user.services.darkman-set-theme = { - Unit = { - Description = "Set Darkman to dark on graphical session startup"; - PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session.target" ]; - }; - - Service = { - Type = "oneshot"; - ExecStart = "${lib.getExe config.desktop.darkman.package} set dark"; - }; - - Install = { - WantedBy = [ "graphical-session.target" ]; - }; - }; - }; -} -- cgit v1.2.3