Compare commits
1 Commits
main
...
wip/theme-
Author | SHA1 | Date | |
---|---|---|---|
5b42a03972 |
@ -11,6 +11,7 @@ in
|
|||||||
./profile
|
./profile
|
||||||
./programs
|
./programs
|
||||||
./sessions
|
./sessions
|
||||||
|
./helpers
|
||||||
];
|
];
|
||||||
config = {};
|
config = {};
|
||||||
options.nixfiles = {
|
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