nixos/modules/desktop/picom/default.nix

30 lines
475 B
Nix
Raw Normal View History

2023-08-03 17:22:07 +04:00
{
2024-01-29 11:57:00 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
2024-08-01 16:24:09 +04:00
let
2024-01-29 11:57:00 +04:00
cfg = config.modules.desktop.picom;
in {
2023-08-03 17:22:07 +04:00
options.modules.desktop.picom = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-08-03 17:22:07 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2024-01-29 11:57:00 +04:00
users.users.sako.packages = with pkgs; [
2023-08-04 21:33:34 +04:00
picom
2023-08-03 17:22:07 +04:00
];
2024-01-29 11:57:00 +04:00
home-manager.users.sako = {pkgs, ...}: {
2023-08-04 21:06:23 +04:00
xdg.configFile = {
2023-08-04 21:05:21 +04:00
picom = {
source = ../../../config/picom;
recursive = true;
};
};
};
2023-08-03 17:22:07 +04:00
};
}