Simplify more options

This commit is contained in:
Jimbo 2025-02-02 13:42:37 -05:00
parent fbfedfd761
commit 8c2bf296ca
8 changed files with 33 additions and 58 deletions

View file

@ -1,9 +1,6 @@
{ lib, config, ... }:
{ config, lib, ... }:
{
options.system.wireguard.client.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
options.system.wireguard.client.enable = lib.mkEnableOption "Enable the Wireguard client";
config = lib.mkIf config.system.wireguard.client.enable {
networking = {

View file

@ -1,9 +1,6 @@
{ lib, config, ... }:
{ config, lib, ... }:
{
options.system.wireguard.server.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
options.system.wireguard.server.enable = lib.mkEnableOption "Enable the Wireguard server";
config = lib.mkIf config.system.wireguard.server.enable {
networking = {

View file

@ -1,9 +1,6 @@
{ config, lib, pkgs, ... }:
{
options.system.wireless.enable = lib.mkOption {
type = lib.types.bool;
default = true;
};
options.system.wireless.enable = lib.mkEnableOption "Enable wireless stack";
config = lib.mkIf config.system.wireless.enable {
networking.wireless.iwd.enable = true;