Skip to content

Commit

Permalink
Document the shared module and options
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Oct 15, 2023
1 parent 539a512 commit 6bdd1ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions shared/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Common configuration enabled on all hosts.
{ config, lib, pkgs, flakeInputs, ... }:

with lib;
Expand Down
8 changes: 7 additions & 1 deletion shared/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ with lib;

{
options.nixfiles.firewall = {
ipBlocklistFile = mkOption { type = types.nullOr types.str; default = null; };
ipBlocklistFile = mkOption {
type = types.nullOr types.str;
default = null;
description = mdDoc ''
File containing IPs to block.
'';
};
};
}

0 comments on commit 6bdd1ef

Please sign in to comment.