mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
nixos/slock: add .package option (for those wishing to override)
This commit is contained in:
parent
5d67f4277d
commit
a5cedfaffa
@ -16,16 +16,17 @@ in
|
||||
Whether to install slock screen locker with setuid wrapper.
|
||||
'';
|
||||
};
|
||||
package = mkPackageOption pkgs "slock" {};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [ pkgs.slock ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
security.wrappers.slock =
|
||||
{ setuid = true;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
source = "${pkgs.slock.out}/bin/slock";
|
||||
source = lib.getExe cfg.package;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user