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.desktop.dconf;
cfg = config.features.desktop.dconf;
in
{
options.nixosModules.desktop.dconf.enable = mkEnableOption "Enable dconf";
options.features.desktop.dconf.enable = mkEnableOption "Enable dconf";
config = mkIf cfg.enable {
programs.dconf.enable = true;

View file

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

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.nixosModules.desktop.fonts;
cfg = config.features.desktop.fonts;
in
{
options.nixosModules.desktop.fonts.enable = mkEnableOption "Enable fonts";
options.features.desktop.fonts.enable = mkEnableOption "Enable fonts";
config = mkIf cfg.enable {
fonts = {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.nixosModules.desktop.media.makemkv;
cfg = config.features.desktop.media.makemkv;
in
{
options.nixosModules.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
config = mkIf cfg.enable {
boot.kernelModules = [ "sg" ];

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.nixosModules.desktop.st;
cfg = config.features.desktop.st;
in
{
options.nixosModules.desktop.st.enable = mkEnableOption "Enable st";
options.features.desktop.st.enable = mkEnableOption "Enable st";
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.nixosModules.desktop.thunar;
cfg = config.features.desktop.thunar;
in
{
options.nixosModules.desktop.thunar.enable = mkEnableOption "Enable thunar";
options.features.desktop.thunar.enable = mkEnableOption "Enable thunar";
config = mkIf cfg.enable {
programs.thunar = {