mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Reduce wrapper file count
This commit is contained in:
parent
058d1b38a3
commit
a290812085
8 changed files with 56 additions and 41 deletions
26
wrappers/hyprlock.nix
Normal file
26
wrappers/hyprlock.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ assembleWrapper, moduleArgs, ... }:
|
||||
let
|
||||
inherit (moduleArgs) pkgs;
|
||||
in
|
||||
assembleWrapper {
|
||||
basePackage = pkgs.hyprlock;
|
||||
|
||||
flags =
|
||||
let
|
||||
hyprlock-config = pkgs.writeText "hyprlock-config" ''
|
||||
background {
|
||||
monitor =
|
||||
path = screenshot
|
||||
blur_size = 4
|
||||
blur_passes = 1
|
||||
}
|
||||
input-field {
|
||||
monitor =
|
||||
}
|
||||
'';
|
||||
in
|
||||
[
|
||||
"--config"
|
||||
hyprlock-config
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue