refactor(treewide): enable modules based on host.type
This commit is contained in:
parent
779603c4cc
commit
25e02c034c
10 changed files with 39 additions and 67 deletions
|
|
@ -1,18 +1,9 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.networking;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
in
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
options.systemModules.networking.tools = mkEnableOption "Enable networking tools";
|
||||
|
||||
config = mkIf cfg.tools {
|
||||
environment.systemPackages = with pkgs; [
|
||||
traceroute
|
||||
mtr
|
||||
tcpdump
|
||||
];
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
traceroute
|
||||
mtr
|
||||
tcpdump
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue