Files
sydnix/modules/home/dank-material-shell.nix
Madeleine Sydney Ślaga 148597d593
All checks were successful
build / build (push) Successful in 1m47s
refactor(fruitbook): niri 대신에 dms로 잠금
2026-03-22 01:27:45 -06:00

26 lines
622 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.sydnix.dank-material-shell;
json = pkgs.formats.json {};
in {
options.sydnix.dank-material-shell = {
enable = lib.mkEnableOption "DMS";
settings = lib.mkOption {
type = json.type;
default = { };
description = ''
DankMaterialShell configuration settings as an attribute set,
to be written to ~/.config/DankMaterialShell/settings.json.
'';
};
};
config = lib.mkIf cfg.enable {
xdg.configFile = {
"DankMaterialShell/settings.json".source =
json.generate "settings.json" cfg.settings;
};
};
}