feat: massive refactor
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
{ config, lib, ... }:
|
||||
lib.my.makeHomeProgramConfig {
|
||||
inherit config;
|
||||
programName = "firefox";
|
||||
optionPath = [
|
||||
"desktop"
|
||||
"browser"
|
||||
"firefox"
|
||||
];
|
||||
extraConfig = {
|
||||
let
|
||||
cfg = config.my.desktop.browser.firefox;
|
||||
in
|
||||
{
|
||||
options.my.desktop.browser.firefox = {
|
||||
enable = lib.mkEnableOption "firefox";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.hm.programs.firefox.enable = true;
|
||||
my.persist.homeDirs = [
|
||||
".mozilla"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user