summaryrefslogtreecommitdiff
path: root/modules/network.nix
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-10-24 22:52:35 -0700
committerKleidi Bujari <mail@4kb.net>2026-10-24 22:59:09 -0700
commit48c8a4145c5a73874797a6de3f05ce584b1d1798 (patch)
treebd4c627e8c8944fb7082b7a9982e8d3677c2a2c4 /modules/network.nix
parent1a181be93f37a94b347b2f5f97a1fef57e11cf89 (diff)
parent27db59cac4f3c3e7a1e4187a5f56d4ec61895c5a (diff)
downloaddepot-48c8a4145c5a73874797a6de3f05ce584b1d1798.tar.gz
depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.tar.bz2
depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.zip
merge hakyllHEADmaster
Diffstat (limited to 'modules/network.nix')
-rw-r--r--modules/network.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/network.nix b/modules/network.nix
index 8264102..e9383c2 100644
--- a/modules/network.nix
+++ b/modules/network.nix
@@ -3,6 +3,8 @@ let
cfg = config.depot.net;
inherit (lib)
mkOption
+ mkEnableOption
+ mkIf
types
;
@@ -27,6 +29,7 @@ in
];
options.depot.net = {
+ enable = mkEnableOption "depot networking";
v6Token = mkOption {
type = types.str;
default = "eui64";
@@ -34,7 +37,7 @@ in
};
};
- config = {
+ config = mkIf cfg.enable {
# networkd handles this
networking.useDHCP = false;