-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nix/HM module: add security.pam instructions
- Loading branch information
Showing
1 changed file
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,31 @@ self: { | |
inherit (lib.modules) mkIf; | ||
inherit (lib.options) mkOption mkEnableOption; | ||
|
||
boolToString = x: if x then "true" else "false"; | ||
boolToString = x: | ||
if x | ||
then "true" | ||
else "false"; | ||
cfg = config.programs.hyprlock; | ||
in { | ||
options.programs.hyprlock = { | ||
enable = mkEnableOption "Hyprlock, Hyprland's GPU-accelerated lock screen utility"; | ||
enable = | ||
mkEnableOption "" | ||
// { | ||
description = '' | ||
Whether to enable Hyprlock, Hyprland's GPU-accelerated lock screen utility. | ||
Note that PAM must be configured to enable hyprlock to perform | ||
authentication. The package installed through home-manager | ||
will *not* be able to unlock the session without this | ||
configuration. | ||
On NixOS, it can be enabled using: | ||
```nix | ||
security.pam.services.hyprlock = {}; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fufexan
Author
Member
|
||
``` | ||
''; | ||
}; | ||
|
||
package = mkOption { | ||
description = "The hyprlock package"; | ||
|
@@ -110,7 +130,7 @@ in { | |
}; | ||
}); | ||
default = [ | ||
{ } | ||
{} | ||
]; | ||
}; | ||
|
||
|
@@ -224,7 +244,7 @@ in { | |
}; | ||
}); | ||
default = [ | ||
{ } | ||
{} | ||
]; | ||
}; | ||
|
||
|
@@ -290,13 +310,13 @@ in { | |
}; | ||
}); | ||
default = [ | ||
{ } | ||
{} | ||
]; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
home.packages = [ cfg.package ]; | ||
home.packages = [cfg.package]; | ||
|
||
xdg.configFile."hypr/hyprlock.conf".text = '' | ||
general { | ||
|
I don't have this line anywhere in my NixOS configuration but Hyprlock is functioning perfectly, as intended. Am I misunderstanding something?