add wip stuff for helpers folder
This commit is contained in:
parent
f4a7ba1a5d
commit
5b42a03972
@ -11,6 +11,7 @@ in
|
||||
./profile
|
||||
./programs
|
||||
./sessions
|
||||
./helpers
|
||||
];
|
||||
config = {};
|
||||
options.nixfiles = {
|
||||
|
6
home/helpers/default.nix
Normal file
6
home/helpers/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{...}:
|
||||
{
|
||||
imports = [
|
||||
./swaylock.nix
|
||||
];
|
||||
}
|
19
home/helpers/swaylock.nix
Normal file
19
home/helpers/swaylock.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user