Add module documentation
This commit is contained in:
parent
7c495bceb8
commit
2cd801aa2b
12 changed files with 66 additions and 19 deletions
modules/home-manager
|
@ -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 "";
|
||||
};
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue