mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
12 lines
339 B
Nix
12 lines
339 B
Nix
{ config, lib, pkgs, ... }: with lib;
|
|
|
|
let cfg = config.programs.swaylock; in
|
|
{
|
|
options.programs.swaylock = {
|
|
colors = mkOption {
|
|
type = types.attrsOf types.str;
|
|
default = { };
|
|
};
|
|
};
|
|
config.programs.swaylock.settings = mapAttrs' (arg: color: nameValuePair ("${arg}-color") (removePrefix "#" color)) cfg.colors;
|
|
}
|