Compare commits

...

7 commits

Author SHA1 Message Date
2f6ed21f0c
feat: finished migration 2025-05-31 18:03:19 -07:00
0ace76d28b
feat: done with gui migration 2025-05-31 17:57:56 -07:00
e55314c922
feat: zathura 2025-05-31 17:57:56 -07:00
979d3dba03
feat: wezterm 2025-05-31 17:57:56 -07:00
d244b5d2a5
feat: vlc 2025-05-31 17:42:15 -07:00
26a49acbc1
feat: thunderbird 2025-05-31 17:40:10 -07:00
7d6e9c5e2b
feat: pidgin 2025-05-31 17:34:48 -07:00
85 changed files with 123 additions and 193 deletions

View file

@ -7,6 +7,8 @@ in {
floorp = enabled;
nh = enabled;
phpstorm = enabled;
pidgin = enabled;
thunderbird = enabled;
wezterm = enabled;
wireguard = enabled;
};

View file

@ -4,6 +4,8 @@
./floorp.nix
./nh.nix
./phpstorm.nix
./pidgin.nix
./thunderbird.nix
./wezterm.nix
./wireguard.nix
];

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
cfg = config.marleyos.programs.pidgin;
in {
options.marleyos.programs.pidgin.enable = lib.mkEnableOption "pidgin";
config = lib.mkIf cfg.enable {
homebrew.casks = ["pidgin"];
};
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
cfg = config.marleyos.programs.thunderbird;
in {
options.marleyos.programs.thunderbird.enable = lib.mkEnableOption "thunderbird";
config = lib.mkIf cfg.enable {
homebrew.casks = ["thunderbird"];
};
}

View file

@ -1,6 +1,6 @@
{
lib,
config,
lib,
...
}: let
cfg = config.marleyos.programs.wezterm;

View file

@ -61,8 +61,13 @@ in {
neo = enabled;
neovim = enabled;
phpstorm = enabled;
pidgin = enabled;
superfile = enabled;
tea = enabled;
thunderbird = enabled;
vlc = enabled;
wezterm = enabled;
zathura = enabled;
};
services = {

View file

@ -36,15 +36,20 @@
./neovim.nix
./nh.nix
./phpstorm
./pidgin
./ripgrep.nix
./ssh.nix
./starship
./superfile.nix
./systemctl.nix
./tea.nix
./thunderbird.nix
./tmux.nix
./vlc.nix
./waybar.nix
./wezterm.nix
./wget.nix
./zathura.nix
./zoxide.nix
# TODO: uncomment when swaylock is figured out

View file

@ -1,16 +1,22 @@
{
lib,
marleylib,
config,
osConfig,
lib,
pkgs,
...
}: let
inherit (marleylib.module) mkEnableOption';
cfg = config.marleyos.programs.pidgin;
osCfg = osConfig.marleyos.programs.pidgin.enable or false;
in {
options.marleyos.programs.pidgin.enable = lib.mkEnableOption "pidgin";
options.marleyos.programs.pidgin.enable = mkEnableOption' "pidgin" osCfg;
config = lib.mkIf cfg.enable {
programs.pidgin = {
enable = true;
package = lib.mkIf pkgs.stdenv.isDarwin pkgs.emptyDirectory;
plugins = with pkgs.pidginPackages; [
pidgin-window-merge

View file

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 154 B

View file

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 155 B

View file

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

View file

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

View file

Before

Width:  |  Height:  |  Size: 159 B

After

Width:  |  Height:  |  Size: 159 B

View file

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 155 B

View file

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

View file

Before

Width:  |  Height:  |  Size: 152 B

After

Width:  |  Height:  |  Size: 152 B

View file

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

View file

Before

Width:  |  Height:  |  Size: 158 B

After

Width:  |  Height:  |  Size: 158 B

View file

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View file

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 206 B

View file

Before

Width:  |  Height:  |  Size: 159 B

After

Width:  |  Height:  |  Size: 159 B

View file

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View file

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View file

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View file

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View file

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 155 B

View file

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View file

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 450 B

View file

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 589 B

View file

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 443 B

View file

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View file

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 464 B

View file

Before

Width:  |  Height:  |  Size: 478 B

After

Width:  |  Height:  |  Size: 478 B

View file

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 458 B

View file

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 474 B

View file

Before

Width:  |  Height:  |  Size: 543 B

After

Width:  |  Height:  |  Size: 543 B

View file

Before

Width:  |  Height:  |  Size: 503 B

After

Width:  |  Height:  |  Size: 503 B

View file

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 490 B

View file

Before

Width:  |  Height:  |  Size: 478 B

After

Width:  |  Height:  |  Size: 478 B

View file

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 459 B

View file

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

View file

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

View file

Before

Width:  |  Height:  |  Size: 479 B

After

Width:  |  Height:  |  Size: 479 B

View file

Before

Width:  |  Height:  |  Size: 477 B

After

Width:  |  Height:  |  Size: 477 B

View file

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 523 B

View file

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 451 B

View file

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 452 B

View file

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 459 B

View file

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 458 B

View file

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 459 B

View file

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 460 B

View file

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 440 B

View file

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View file

Before

Width:  |  Height:  |  Size: 436 B

After

Width:  |  Height:  |  Size: 436 B

View file

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

View file

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

View file

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 505 B

View file

Before

Width:  |  Height:  |  Size: 456 B

After

Width:  |  Height:  |  Size: 456 B

View file

Before

Width:  |  Height:  |  Size: 479 B

After

Width:  |  Height:  |  Size: 479 B

View file

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 462 B

View file

Before

Width:  |  Height:  |  Size: 471 B

After

Width:  |  Height:  |  Size: 471 B

View file

Before

Width:  |  Height:  |  Size: 454 B

After

Width:  |  Height:  |  Size: 454 B

View file

@ -0,0 +1,31 @@
{
marleylib,
config,
osConfig,
lib,
pkgs,
...
}: let
inherit (marleylib.module) mkEnableOption';
cfg = config.marleyos.programs.thunderbird;
osCfg = osConfig.marleyos.programs.thunderbird.enable or false;
in {
options.marleyos.programs.thunderbird.enable =
mkEnableOption' "thunderbird" osCfg;
config = lib.mkIf cfg.enable {
programs.thunderbird = {
enable = true;
package = lib.mkIf pkgs.stdenv.isDarwin pkgs.emptyDirectory;
settings = {
"privacy.donottrackheader.enabled" = true;
};
profiles."${config.marleycfg.my.name}" = {
isDefault = true;
};
};
};
}

View file

@ -8,7 +8,7 @@
in {
options.marleyos.programs.vlc.enable = lib.mkEnableOption "vlc";
config = lib.mkIf cfg.enable {
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
home.packages = with pkgs; [
vlc
];

View file

@ -0,0 +1,39 @@
{
marleylib,
config,
osConfig,
lib,
pkgs,
...
}: let
inherit (marleylib.module) mkEnableOption';
cfg = config.marleyos.programs.wezterm;
osCfg = osConfig.marleyos.programs.wezterm.enable or false;
in {
options.marleyos.programs.wezterm.enable = mkEnableOption' "wezterm" osCfg;
config = lib.mkIf cfg.enable {
programs.wezterm = {
enable = true;
package = lib.mkIf pkgs.stdenv.isDarwin pkgs.emptyDirectory;
# TODO: create `local config` & return it separately, so other modules can
# insert config in the middle.
extraConfig =
# lua
''
local config = wezterm.config_builder()
-- Fix color blocks instead of text issue.
config.front_end = "WebGpu"
config.freetype_load_flags = 'NO_HINTING'
config.enable_tab_bar = false
return config
'';
};
};
}

View file

@ -1,13 +1,14 @@
{
lib,
config,
lib,
pkgs,
...
}: let
cfg = config.marleyos.programs.zathura;
in {
options.marleyos.programs.zathura.enable = lib.mkEnableOption "zathura";
config = lib.mkIf cfg.enable {
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
programs.zathura = {
enable = true;
};

View file

@ -1,34 +0,0 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.bundles.desktop;
inherit (lib.marleyos) enabled;
in {
options.marleyos.bundles.desktop.enable = lib.mkEnableOption "desktop";
config = lib.mkIf cfg.enable {
marleyos = {
isDesktop = true;
appearance = {
base = enabled;
gtk = enabled;
qt = enabled;
};
programs = {
cli = enabled;
tui = enabled;
gui = enabled;
};
services = {
# syncthing = enabled;
udiskie = enabled;
};
};
};
}

View file

@ -1,29 +0,0 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.bundles.mac;
inherit (lib.marleyos) enabled disabled;
in {
options.marleyos.bundles.mac.enable = lib.mkEnableOption "mac";
config = lib.mkIf cfg.enable {
marleyos = {
isDesktop = true;
programs = {
cli = enabled;
journalctl = disabled;
systemctl = disabled;
tui = enabled;
cava = disabled;
ncmpcpp = disabled;
wezterm = enabled;
};
};
};
}

View file

@ -1,28 +0,0 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.bundles.server;
inherit (lib.marleyos) enabled disabled;
in {
options.marleyos.bundles.server.enable = lib.mkEnableOption "server";
config = lib.mkIf cfg.enable {
marleyos = {
isServer = true;
programs = {
cli = enabled;
tui = enabled;
neo = lib.mkForce disabled;
rbw = lib.mkForce disabled;
amfora = lib.mkForce disabled;
cava = lib.mkForce disabled;
ncmpcpp = lib.mkForce disabled;
};
};
};
}

View file

@ -1,27 +0,0 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.programs.gui;
inherit (lib.marleyos) enabled;
in {
options.marleyos.programs.gui.enable = lib.mkEnableOption "gui";
config = lib.mkIf cfg.enable {
marleyos.programs = {
CEmu = enabled;
calibre = enabled;
discord = enabled;
floorp = enabled;
nemo = enabled;
pidgin = enabled;
thunderbird = enabled;
phpstorm = enabled;
vlc = enabled;
wezterm = enabled;
zathura = enabled;
};
};
}

View file

@ -1,23 +0,0 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.programs.thunderbird;
in {
options.marleyos.programs.thunderbird.enable = lib.mkEnableOption "thunderbird";
config = lib.mkIf cfg.enable {
programs.thunderbird = {
enable = true;
settings = {
"privacy.donottrackheader.enabled" = true;
};
profiles."${config.marleyos.my.name}" = {
isDefault = true;
};
};
};
}

View file

@ -1,46 +0,0 @@
{
lib,
config,
system,
pkgs,
...
}: let
inherit (lib.snowfall.system) is-darwin;
cfg = config.marleyos.programs.wezterm;
isGenericLinux = config.targets.genericLinux.enable;
isNotNixOS = isGenericLinux || (is-darwin system);
in {
options.marleyos.programs.wezterm.enable = lib.mkEnableOption "wezterm";
config = lib.mkIf cfg.enable {
programs.wezterm = {
enable = true;
# Generic linux: NixGL makes Wezterm shit the bed for some reason.
# macOS: Prefer brew cask so a proper Applications shortcut is made.
package =
if isNotNixOS
then pkgs.emptyDirectory
else pkgs.wezterm;
# TODO: create `local config` & return it seperately, so other modules can
# insert config in the middle
extraConfig =
# lua
''
local config = wezterm.config_builder()
-- Fix color blocks instead of text issue.
config.front_end = "WebGpu"
config.freetype_load_flags = 'NO_HINTING'
config.enable_tab_bar = false
return config
'';
};
};
}