Skip to content

Commit

Permalink
format nix code with nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pitkling committed Dec 16, 2024
1 parent 9cdc4c3 commit 808dfaf
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions nixos/modules/programs/espanso-capdacoverride/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,22 @@ in
};
};

config =
lib.mkIf cfg.enable {
nixpkgs.overlays = [
(final: prev: {
_espanso-wayland-orig = prev.espanso-wayland;
espanso-wayland = pkgs.callPackage ./espanso-capdacoverride.nix {
capDacOverrideWrapperDir = "${config.security.wrapperDir}";
espanso = cfg.package;
};
})
];
config = lib.mkIf cfg.enable {
nixpkgs.overlays = [
(final: prev: {
_espanso-wayland-orig = prev.espanso-wayland;
espanso-wayland = pkgs.callPackage ./espanso-capdacoverride.nix {
capDacOverrideWrapperDir = "${config.security.wrapperDir}";
espanso = cfg.package;
};
})
];

security.wrappers."espanso-wayland" = {
source = lib.getExe pkgs.espanso-wayland;
capabilities = "cap_dac_override+p";
owner = "root";
group = "root";
};
security.wrappers."espanso-wayland" = {
source = lib.getExe pkgs.espanso-wayland;
capabilities = "cap_dac_override+p";
owner = "root";
group = "root";
};
};
}

0 comments on commit 808dfaf

Please sign in to comment.