Re-add the features config prefix

This commit is contained in:
Oliver Davies 2025-07-09 08:00:00 +01:00
parent 34cb9db3d4
commit 45433358ff
50 changed files with 245 additions and 231 deletions

View file

@ -1,13 +1,13 @@
{ config, lib, ... }:
let
cfg = config.desktop.browsers.${name};
cfg = config.features.desktop.browsers.${name};
name = "chromium";
inherit (lib) mkEnableOption mkIf;
in
{
options.desktop.browsers.${name}.enable = mkEnableOption "Enable ${name}";
options.features.desktop.browsers.${name}.enable = mkEnableOption "Enable ${name}";
config = mkIf cfg.enable {
programs.${name}.enable = true;

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.desktop.browsers.firefox;
cfg = config.features.desktop.browsers.firefox;
in
{
options.desktop.browsers.firefox = {
options.features.desktop.browsers.firefox = {
enable = mkEnableOption "Enable firefox";
homepageUrl = mkOption {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.desktop.browsers.qutebrowser;
cfg = config.features.desktop.browsers.qutebrowser;
in
{
options.desktop.browsers.qutebrowser.enable =
options.features.desktop.browsers.qutebrowser.enable =
mkEnableOption "Enable qutebrowser";
config = mkIf cfg.enable {

View file

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

View file

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

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.desktop.media.handbrake;
cfg = config.features.desktop.media.handbrake;
in
{
options.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
options.features.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.desktop.media.makemkv;
cfg = config.features.desktop.media.makemkv;
in
{
options.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

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

View file

@ -1,12 +1,12 @@
{ config, lib, ... }:
let
cfg = config.desktop.redshift;
cfg = config.features.desktop.redshift;
inherit (lib) mkEnableOption mkIf;
in
{
options.desktop.redshift = {
options.features.desktop.redshift = {
enable = mkEnableOption "Enable redshift";
};