added categories for system configuration options as well
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
{pkgs, lib, config, ...}: {
|
||||
options = {
|
||||
movOpts.bootLoader.enable = lib.mkEnableOption "enables bootloader config";
|
||||
movOpts.hardwareCfg.bootLoader.enable = lib.mkEnableOption "enables bootloader config";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.bootLoader.enable {
|
||||
config = lib.mkIf config.movOpts.hardwareCfg.bootLoader.enable {
|
||||
boot = {
|
||||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{host, lib, config, ...}:
|
||||
{
|
||||
options = {
|
||||
movOpts.networkModule.enable = lib.mkEnableOption "enables network configuration";
|
||||
movOpts.hardwareCfg.networkModule.enable = lib.mkEnableOption "enables network configuration";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.networkModule.enable {
|
||||
config = lib.mkIf config.movOpts.hardwareCfg.networkModule.enable {
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
hostName = "${host}";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{lib, config, ... }: {
|
||||
options = {
|
||||
movOpts.powerProfiles.enable = lib.mkEnableOption "enables power profiles";
|
||||
movOpts.hardwareCfg.powerProfiles.enable = lib.mkEnableOption "enables power profiles";
|
||||
};
|
||||
config = lib.mkIf config.movOpts.powerProfiles.enable {
|
||||
config = lib.mkIf config.movOpts.hardwareCfg.powerProfiles.enable {
|
||||
services = {
|
||||
|
||||
power-profiles-daemon.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user