feat(darwin): Install floorp through homebrew

This commit is contained in:
punkfairie 2025-01-26 20:38:06 -08:00
parent 0d3d62b944
commit 7513e6d1cf
Signed by: punkfairie
GPG key ID: 8CEDBFDF5C0D613D
3 changed files with 22 additions and 0 deletions

View file

@ -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"];
};
}

View file

@ -2,9 +2,12 @@
lib, lib,
config, config,
pkgs, pkgs,
system,
... ...
}: let }: let
cfg = config.marleyos.programs.floorp; cfg = config.marleyos.programs.floorp;
inherit (lib.snowfall.system) is-darwin;
in { in {
options.marleyos.programs.floorp.enable = lib.mkEnableOption "floorp"; options.marleyos.programs.floorp.enable = lib.mkEnableOption "floorp";
@ -19,6 +22,11 @@ in {
programs.floorp = { programs.floorp = {
enable = true; enable = true;
package =
if (is-darwin system)
then pkgs.emptyDirectory
else pkgs.floorp;
profiles = { profiles = {
"${config.marleyos.my.name}" = { "${config.marleyos.my.name}" = {
extensions = extensions =

View file

@ -17,6 +17,7 @@ in {
}; };
programs = { programs = {
fish = enabled; fish = enabled;
floorp = enabled;
wezterm = enabled; wezterm = enabled;
}; };
}; };