Compare commits

...

1 Commits

Author SHA1 Message Date
5b42a03972
add wip stuff for helpers folder 2024-03-22 01:50:15 -04:00
3 changed files with 26 additions and 0 deletions

View File

@ -11,6 +11,7 @@ in
./profile
./programs
./sessions
./helpers
];
config = {};
options.nixfiles = {

6
home/helpers/default.nix Normal file
View File

@ -0,0 +1,6 @@
{...}:
{
imports = [
./swaylock.nix
];
}

19
home/helpers/swaylock.nix Normal file
View File

@ -0,0 +1,19 @@
# This module doesn't configure swaylock on its own (swaylock doesn't have a
# config file), it just produces a "finalCommand" option which can be consumed
# by other functions, and provides a central place to configure it from other
# modules (e.g., to make theming easier). I only want to configure
{ pkgs, config, lib, ... }:
let
inherit (lib) mkOption;
inherit (lib.types) nullOr bool int str path;
in
{
options.nixfiles.helpers.swaylock = {
wallpaper = lib.mkOption {
description = "Wallpaper to show on swaylock";
type = nullOr path;
default = null;
example = "femboy-bee.png";
};
};
}