1
Fork 0

Add module documentation

This commit is contained in:
Matei Adriel 2023-11-13 04:31:54 +01:00
parent 7c495bceb8
commit 2cd801aa2b
No known key found for this signature in database
12 changed files with 66 additions and 19 deletions
modules/home-manager

View file

@ -1,10 +1,12 @@
# A big chunk of this was taken from fuxefan's config:
# https://github.com/fufexan/dotfiles/blob/main/home/programs/eww/default.nix
{ config
, pkgs
, lib
, ...
}:
let
reload_script = pkgs.writeShellScript "reload_eww" ''
reloadScript = pkgs.writeShellScript "reload_eww" ''
systemctl --user restart eww.service
'';
@ -51,7 +53,7 @@ in
onChange =
if cfg.autoReload
then reload_script.outPath
then reloadScript.outPath
else "";
};

View file

@ -2,7 +2,7 @@
# This is meant to provide a wm-independent way of specifying the monitor configuration of each machine.
{ lib, ... }:
{
options.monitors = lib.mkOption {
options.satellite.monitors = lib.mkOption {
type = lib.types.listOf (lib.types.submodule {
options = {
name = lib.mkOption {