nixcfg/modules/nixos/desktop/addons/swappy/default.nix
2024-01-11 10:31:04 +00:00

20 lines
500 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.desktop.addons.swappy;
in
{
options.plusultra.desktop.addons.swappy = with types; {
enable =
mkBoolOpt false "Whether to enable Swappy in the desktop environment.";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ swappy ];
plusultra.home.configFile."swappy/config".source = ./config;
plusultra.home.file."Pictures/screenshots/.keep".text = "";
};
}