DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 40d457f6a1ae9a34e4a369eaf7219cfc0effddb1 nix-arta/modules/hyprlock.nix -rw-r--r-- 788 bytes
40d457f6Jonni Liljamo feat: hyprland and friends 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  flake.modules.nixos.hyprlock = {...}: {
    security.pam.services.hyprlock = {};
  };

  flake.modules.homeManager.hyprlock = {
    config,
    lib,
    ...
  }: let
    cfg = config.arta.hyprlock;
  in {
    options.arta.hyprlock = {
      extraConfig = lib.mkOption {
        type = lib.types.lazyAttrsOf lib.types.unspecified;
        default = {};
      };
    };

    config = {
      programs.hyprlock = {
        enable = true;
        settings = lib.mkMerge [
          {
            general = {
              hide_cursor = true;
              ignore_empty_input = true;
            };
            animations.enabled = false;
            background = {
              color = "0xffffffff";
            };
          }
          cfg.extraConfig
        ];
      };
    };
  };
}