aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/darkman/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/darkman/default.nix')
-rw-r--r--modules/desktop/darkman/default.nix55
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" ];
- };
- };
- };
-}