flake update

This commit is contained in:
arcnmx 2023-04-18 06:02:41 -07:00
parent a90ce810a1
commit da57393ff1
3 changed files with 35 additions and 20 deletions

12
modules/home/swaylock.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }: with lib;
let cfg = config.programs.swaylock; in
{
options.programs.swaylock = {
colors = mkOption {
type = types.attrsOf types.str;
default = { };
};
};
config.programs.swaylock.settings = mapAttrs' (arg: color: nameValuePair ("${arg}-color") (removePrefix "#" color)) cfg.colors;
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ meta, config, pkgs, lib, ... }:
/*
This module:
@ -9,6 +9,9 @@ with lib;
let cfg = config.nixfiles.theme; in
{
imports = with meta; [
modules.home.swaylock
];
options.nixfiles.theme = {
enable = mkEnableOption "kat's theme module";
sass = {
@ -66,7 +69,7 @@ let cfg = config.nixfiles.theme; in
programs.swaylock = mkIf (cfg.swaylock) {
enable = true;
package = pkgs.swaylock-effects-develop;
args = {
settings = {
screenshots = true;
daemonize = true;
show-failed-attempts = true;