diff --git a/modules/darwin/programs/floorp/default.nix b/modules/darwin/programs/floorp/default.nix new file mode 100644 index 0000000..4bd874b --- /dev/null +++ b/modules/darwin/programs/floorp/default.nix @@ -0,0 +1,13 @@ +{ + lib, + config, + ... +}: let + cfg = config.marleyos.programs.floorp; +in { + options.marleyos.programs.floorp.enable = lib.mkEnableOption "floorp"; + + config = lib.mkIf cfg.enable { + homebrew.casks = ["floorp"]; + }; +} diff --git a/modules/home/programs/gui/floorp/default.nix b/modules/home/programs/gui/floorp/default.nix index b106ebc..8fbfed1 100644 --- a/modules/home/programs/gui/floorp/default.nix +++ b/modules/home/programs/gui/floorp/default.nix @@ -2,9 +2,12 @@ lib, config, pkgs, + system, ... }: let cfg = config.marleyos.programs.floorp; + + inherit (lib.snowfall.system) is-darwin; in { options.marleyos.programs.floorp.enable = lib.mkEnableOption "floorp"; @@ -19,6 +22,11 @@ in { programs.floorp = { enable = true; + package = + if (is-darwin system) + then pkgs.emptyDirectory + else pkgs.floorp; + profiles = { "${config.marleyos.my.name}" = { extensions = diff --git a/systems/aarch64-darwin/mairley/default.nix b/systems/aarch64-darwin/mairley/default.nix index c9a44e3..58b3340 100644 --- a/systems/aarch64-darwin/mairley/default.nix +++ b/systems/aarch64-darwin/mairley/default.nix @@ -17,6 +17,7 @@ in { }; programs = { fish = enabled; + floorp = enabled; wezterm = enabled; }; };