diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-20 00:50:12 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:27 +0530 |
| commit | 3b030a6b4efb7d107eb238a84433b7a7e762522b (patch) | |
| tree | 3db6eb62e48b274fb23ba226cd89fe78ec1e9f44 /modules/desktop/darkman/default.nix | |
| parent | 2757e5b552efeed41854fd42d0658c34141f3bb3 (diff) | |
| download | home-manager-config-3b030a6b4efb7d107eb238a84433b7a7e762522b.tar.gz home-manager-config-3b030a6b4efb7d107eb238a84433b7a7e762522b.zip | |
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
Diffstat (limited to 'modules/desktop/darkman/default.nix')
| -rw-r--r-- | modules/desktop/darkman/default.nix | 55 |
1 files changed, 0 insertions, 55 deletions
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" ]; - }; - }; - }; -} |
