grafana-alloy: don't build the frontend twice
[NixPkgs.git] / nixos / modules / programs / ecryptfs.nix
blob8674f7ec80e0a208e30f8eb825a6131d1f4bffc3
1 { config, lib, pkgs, ... }:
3 let
4   cfg = config.programs.ecryptfs;
6 in {
7   options.programs.ecryptfs = {
8     enable = lib.mkEnableOption "ecryptfs setuid mount wrappers";
9   };
11   config = lib.mkIf cfg.enable {
12     security.wrappers = {
14       "mount.ecryptfs_private" = {
15         setuid = true;
16         owner = "root";
17         group = "root";
18         source = "${lib.getBin pkgs.ecryptfs}/bin/mount.ecryptfs_private";
19       };
20       "umount.ecryptfs_private" = {
21         setuid = true;
22         owner = "root";
23         group = "root";
24         source = "${lib.getBin pkgs.ecryptfs}/bin/umount.ecryptfs_private";
25       };
27     };
28   };