mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
feat: add flake support
fix: home-manager options
This commit is contained in:
parent
9b4d8d88b7
commit
2bdd1abc33
9 changed files with 332 additions and 45 deletions
43
nix/hm-modules.nix
Normal file
43
nix/hm-modules.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
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 ];
|
||||
|
||||
xdg.configFile = {
|
||||
"maomaowm/config.conf" = {
|
||||
text = config.wayland.windowManager.maomaowm.settings;
|
||||
};
|
||||
"maomaowm/autostart.sh" = {
|
||||
text = config.wayland.windowManager.maomaowm.autostart_sh;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue