mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Move modules in programs/services subfolders
This commit is contained in:
parent
2ff87c8404
commit
211ca98e92
38 changed files with 0 additions and 0 deletions
35
modules/home/programs/hyprlock.nix
Normal file
35
modules/home/programs/hyprlock.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}@moduleArgs:
|
||||
let
|
||||
cfg = config.custom.programs.hyprlock;
|
||||
in
|
||||
{
|
||||
options.custom.programs.hyprlock = {
|
||||
enable = lib.mkEnableOption "";
|
||||
fprintAuth = lib.mkEnableOption "" // {
|
||||
default = moduleArgs.osConfig.services.fprintd.enable or false;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general.immediate_render = true;
|
||||
auth."fingerprint:enabled" = cfg.fprintAuth;
|
||||
animations.enabled = false;
|
||||
input-field.monitor = "";
|
||||
background = {
|
||||
monitor = "";
|
||||
path = "~/Pictures/.wallpaper";
|
||||
color = "rgb(0,0,0)";
|
||||
blur_size = 4;
|
||||
blur_passes = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue