fix: update dms

This commit is contained in:
Nickolaj Jepsen 2026-01-19 17:44:37 +01:00
parent f7157b5a1f
commit 04c85ec904
12 changed files with 77 additions and 41 deletions

View file

@ -2,13 +2,14 @@
config,
lib,
inputs,
pkgs,
pkgsUnstable,
...
}: {
imports = [
./theme.nix
./background.nix
./bar.nix
./plugins.nix
];
config = lib.mkIf config.fireproof.desktop.windowManager.enable {
@ -25,10 +26,11 @@
enableDynamicTheming = false;
enableVPN = false;
enableCalendarEvents = false;
dgop.package = pkgsUnstable.dgop; # not available in stable nixpkgs yet (25.11)
systemd.enable = true;
default.settings = {
settings = {
# General Settings
weatherCoordinates = "56.1496278,10.2134046";
@ -55,21 +57,6 @@
powerMenuDefaultAction = "lock";
};
};
systemd.user.services = {
# A hack to always serve fresh settings from default-settings.json
dms-clean-settings = {
Unit = {
Description = "Delete DankMaterialShell settings before dms starts";
Before = ["dms.service"];
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.coreutils}/bin/rm -f %h/.config/DankMaterialShell/settings.json";
};
Install.WantedBy = ["dms.service"];
};
};
};
};
}