mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
46 lines
827 B
Nix
46 lines
827 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
config,
|
||
|
|
pkgs,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
|
||
|
|
let
|
||
|
|
maomaowm = pkgs.callPackage ./. { };
|
||
|
|
in
|
||
|
|
{
|
||
|
|
options = {
|
||
|
|
wayland.windowManager.maomaowm = {
|
||
|
|
enable = lib.mkOption {
|
||
|
|
type = lib.types.bool;
|
||
|
|
default = false;
|
||
|
|
};
|
||
|
|
|
||
|
|
settings = lib.mkOption {
|
||
|
|
type = lib.types.str;
|
||
|
|
default = "";
|
||
|
|
};
|
||
|
|
|
||
|
|
autostart_sh = lib.mkOption {
|
||
|
|
type = lib.types.str;
|
||
|
|
default = "";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
config = lib.mkIf config.wayland.windowManager.maomaowm.enable {
|
||
|
|
home.packages = [ maomaowm ];
|
||
|
|
|
||
|
|
home.file = {
|
||
|
|
".config/maomao/config.conf" = {
|
||
|
|
text = config.wayland.windowManager.maomaowm.settings;
|
||
|
|
};
|
||
|
|
|
||
|
|
".config/maomao/autostart.sh" = {
|
||
|
|
text = config.wayland.windowManager.maomaowm.autostart_sh;
|
||
|
|
executable = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|