Re-add the features
config prefix
This commit is contained in:
parent
34cb9db3d4
commit
45433358ff
50 changed files with 245 additions and 231 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue