blob: 981fb9a9cb6831a7add02fec77cb69632aa6b6a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ options, config, lib, namespace, ... }:
with lib; with lib.${namespace}; let
cfg = config.${namespace}.apps.firefox;
impermanence = config.${namespace}.impermanence;
in {
options.${namespace}.apps.firefox = with types; {
enable = mkEnableOption "firefox";
};
config = mkIf cfg.enable {
#TODO: migrate to declarative config
home.persistence.${impermanence.location} = {
directories = [
".mozilla"
];
};
programs.firefox = {
enable = true;
};
};
}
|