home-manager: make the hm modules match the nixos ones

This commit is contained in:
Veneficium 2024-11-05 17:45:56 +01:00
parent 4fc501b1e2
commit 32a5ebf118
16 changed files with 256 additions and 98 deletions

View file

@ -1,9 +1,20 @@
{ pkgs, ... }:
{
#todo config
programs.firefox = {
enable = true;
#todo make sure this on only if gnome is setup correctly
nativeMessagingHosts = [ pkgs.gnome-browser-connector ];
config,
lib,
pkgs,
...
}:
{
options.settings.programs.firefox = {
enable = lib.mkEnableOption "enable firefox";
};
config = lib.mkIf config.settings.programs.firefox.enable {
#todo config
programs.firefox = {
enable = true;
#todo make sure this on only if gnome is setup correctly
nativeMessagingHosts = [ pkgs.gnome-browser-connector ];
};
};
}