fixup! all of my custom options are now held in an attribute set called movOpts

This commit is contained in:
pagedmov
2024-11-06 20:11:37 -05:00
parent fc327f501c
commit 1a2402dee7
39 changed files with 195 additions and 187 deletions

View File

@@ -1,9 +1,8 @@
{pkgs, lib, config, ...}: {
options = {
# make this enabled by default!!!
bootLoader.enable = lib.mkEnableOption "enables bootloader config";
movOpts.bootLoader.enable = lib.mkEnableOption "enables bootloader config";
};
config = lib.mkIf config.bootLoader.enable {
config = lib.mkIf config.movOpts.bootLoader.enable {
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;

View File

@@ -1,9 +1,9 @@
{host, lib, config, ...}:
{
options = {
networkModule.enable = lib.mkEnableOption "enables network configuration";
movOpts.networkModule.enable = lib.mkEnableOption "enables network configuration";
};
config = lib.mkIf config.networkModule.enable {
config = lib.mkIf config.movOpts.networkModule.enable {
networking = {
networkmanager.enable = true;
hostName = "${host}";

View File

@@ -1,8 +1,8 @@
{lib, config, ... }: {
options = {
powerProfiles.enable = lib.mkEnableOption "enables power profiles";
movOpts.powerProfiles.enable = lib.mkEnableOption "enables power profiles";
};
config = lib.mkIf config.powerProfiles.enable {
config = lib.mkIf config.movOpts.powerProfiles.enable {
services = {
power-profiles-daemon.enable = true;