Skip to content

Commit

Permalink
feat: allowed null firefox package
Browse files Browse the repository at this point in the history
  • Loading branch information
dearrrfish authored and dwarfmaster committed Jun 17, 2024
1 parent 69e312a commit 35e803f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ versions: extracted: {
inherit (lib) types;

cfg = config.programs.firefox;
version = "${config.programs.firefox.package.version}";
version = if (config.programs.firefox.package != null)
then "${config.programs.firefox.package.version}"
else "unknown";
ext = extracted."${cfg.arkenfox.version}";
in {
options.programs.firefox = {
Expand Down

0 comments on commit 35e803f

Please sign in to comment.