Update config and option names for modules

This commit is contained in:
Oliver Davies 2025-04-30 03:09:17 +01:00
parent fe508bd127
commit bb9b77e2f8
54 changed files with 122 additions and 120 deletions

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.nixosModules.core.bluetooth;
cfg = config.features.core.bluetooth;
in
{
options.nixosModules.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
options.features.core.bluetooth.enable = mkEnableOption "Enable bluetooth";
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.nixosModules.core.openssh;
cfg = config.features.core.openssh;
in
{
options.nixosModules.core.openssh.enable = mkEnableOption "Enable openssh";
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
config = mkIf cfg.enable {
services.openssh = {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.nixosModules.core.pipewire;
cfg = config.features.core.pipewire;
in
{
options.nixosModules.core.pipewire.enable = mkEnableOption "Enable pipewire";
options.features.core.pipewire.enable = mkEnableOption "Enable pipewire";
config = mkIf cfg.enable {
services.pipewire = {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.nixosModules.core.xbanish;
cfg = config.features.core.xbanish;
in
{
options.nixosModules.core.xbanish.enable = mkEnableOption "Enable xbanish";
options.features.core.xbanish.enable = mkEnableOption "Enable xbanish";
config = mkIf cfg.enable {
services.xbanish.enable = true;

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.nixosModules.core.zram;
cfg = config.features.core.zram;
in
{
options.nixosModules.core.zram.enable = mkEnableOption "Enable zram";
options.features.core.zram.enable = mkEnableOption "Enable zram";
config = mkIf cfg.enable {
zramSwap = {