mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
flake update
This commit is contained in:
parent
a90ce810a1
commit
da57393ff1
3 changed files with 35 additions and 20 deletions
12
modules/home/swaylock.nix
Normal file
12
modules/home/swaylock.nix
Normal 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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue