From 5b42a0397252638de6d441641bd4a5db3ac1cdee Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 22 Mar 2024 01:50:15 -0400 Subject: [PATCH] add wip stuff for helpers folder --- home/default.nix | 1 + home/helpers/default.nix | 6 ++++++ home/helpers/swaylock.nix | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 home/helpers/default.nix create mode 100644 home/helpers/swaylock.nix diff --git a/home/default.nix b/home/default.nix index 5915139..3adbaa7 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,7 @@ in ./profile ./programs ./sessions + ./helpers ]; config = {}; options.nixfiles = { diff --git a/home/helpers/default.nix b/home/helpers/default.nix new file mode 100644 index 0000000..36995e9 --- /dev/null +++ b/home/helpers/default.nix @@ -0,0 +1,6 @@ +{...}: +{ + imports = [ + ./swaylock.nix + ]; +} diff --git a/home/helpers/swaylock.nix b/home/helpers/swaylock.nix new file mode 100644 index 0000000..a8d5145 --- /dev/null +++ b/home/helpers/swaylock.nix @@ -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"; + }; + }; +}