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,8 +1,8 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.networking;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib) mkIf;
|
||||
host = config.systemModules.host;
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -15,9 +15,7 @@ in
|
|||
./tailscale
|
||||
];
|
||||
|
||||
options.systemModule.networking.enable = mkEnableOption "Enable networking system module";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf (host.type != "phone") {
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue