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 {