added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
27
nyx/modules/options/usrEnv/programs/lockers.nix
Normal file
27
nyx/modules/options/usrEnv/programs/lockers.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.types) package;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
|
||||
cfg = config.modules.usrEnv.programs.screenlock;
|
||||
pkg =
|
||||
if cfg.gtklock.enable
|
||||
then pkgs.gtklock
|
||||
else pkgs.swaylock-effects;
|
||||
in {
|
||||
options.modules.usrEnv.programs.screenlock = {
|
||||
gtklock.enable = mkEnableOption "gtklock screenlocker";
|
||||
swaylock.enable = mkEnableOption "swaylock screenlocker";
|
||||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = pkg;
|
||||
readOnly = true;
|
||||
description = "The screenlocker package";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue