Add chromium

This commit is contained in:
Oliver Davies 2025-06-09 21:50:17 +01:00
parent e2b435efb1
commit 9f57068259
3 changed files with 18 additions and 0 deletions

View file

@ -56,6 +56,8 @@
desktop = {
browsers = {
chromium.enable = true;
firefox = {
enable = true;

View file

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

View file

@ -1,5 +1,6 @@
{
imports = [
./chromium.nix
./firefox.nix
./qutebrowser.nix
];