# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of my nixos-config. # # You should have received a copy of the License along with this program. # If not, see . { config, lib, ... }: let cfg = config.soispha.programs.swaylock; in { options.soispha.programs.swaylock = { enable = lib.mkEnableOption "swaylock"; }; config = lib.mkIf cfg.enable { # otherwise swaylock can't access the user password. security.pam.services.swaylock = {}; home-manager.users.soispha.programs.swaylock = { enable = true; settings = { image = "${./images/duwon-lee-tempano-port.jpg}"; scaling = "stretch"; color = "000000"; }; }; }; }