Compare commits
7 commits
9c6bc0630d
...
2f6ed21f0c
Author | SHA1 | Date | |
---|---|---|---|
2f6ed21f0c | |||
0ace76d28b | |||
e55314c922 | |||
979d3dba03 | |||
d244b5d2a5 | |||
26a49acbc1 | |||
7d6e9c5e2b |
|
@ -7,6 +7,8 @@ in {
|
||||||
floorp = enabled;
|
floorp = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
phpstorm = enabled;
|
phpstorm = enabled;
|
||||||
|
pidgin = enabled;
|
||||||
|
thunderbird = enabled;
|
||||||
wezterm = enabled;
|
wezterm = enabled;
|
||||||
wireguard = enabled;
|
wireguard = enabled;
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
./floorp.nix
|
./floorp.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./phpstorm.nix
|
./phpstorm.nix
|
||||||
|
./pidgin.nix
|
||||||
|
./thunderbird.nix
|
||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
];
|
];
|
||||||
|
|
13
modules/darwin/programs/pidgin.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
13
modules/darwin/programs/thunderbird.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.wezterm;
|
cfg = config.marleyos.programs.wezterm;
|
||||||
|
|
|
@ -61,8 +61,13 @@ in {
|
||||||
neo = enabled;
|
neo = enabled;
|
||||||
neovim = enabled;
|
neovim = enabled;
|
||||||
phpstorm = enabled;
|
phpstorm = enabled;
|
||||||
|
pidgin = enabled;
|
||||||
superfile = enabled;
|
superfile = enabled;
|
||||||
tea = enabled;
|
tea = enabled;
|
||||||
|
thunderbird = enabled;
|
||||||
|
vlc = enabled;
|
||||||
|
wezterm = enabled;
|
||||||
|
zathura = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -36,15 +36,20 @@
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./phpstorm
|
./phpstorm
|
||||||
|
./pidgin
|
||||||
./ripgrep.nix
|
./ripgrep.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./starship
|
./starship
|
||||||
./superfile.nix
|
./superfile.nix
|
||||||
./systemctl.nix
|
./systemctl.nix
|
||||||
./tea.nix
|
./tea.nix
|
||||||
|
./thunderbird.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
|
./vlc.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
|
./wezterm.nix
|
||||||
./wget.nix
|
./wget.nix
|
||||||
|
./zathura.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
|
||||||
# TODO: uncomment when swaylock is figured out
|
# TODO: uncomment when swaylock is figured out
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
{
|
{
|
||||||
lib,
|
marleylib,
|
||||||
config,
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (marleylib.module) mkEnableOption';
|
||||||
|
|
||||||
cfg = config.marleyos.programs.pidgin;
|
cfg = config.marleyos.programs.pidgin;
|
||||||
|
osCfg = osConfig.marleyos.programs.pidgin.enable or false;
|
||||||
in {
|
in {
|
||||||
options.marleyos.programs.pidgin.enable = lib.mkEnableOption "pidgin";
|
options.marleyos.programs.pidgin.enable = mkEnableOption' "pidgin" osCfg;
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.pidgin = {
|
programs.pidgin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = lib.mkIf pkgs.stdenv.isDarwin pkgs.emptyDirectory;
|
||||||
|
|
||||||
plugins = with pkgs.pidginPackages; [
|
plugins = with pkgs.pidginPackages; [
|
||||||
pidgin-window-merge
|
pidgin-window-merge
|
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 726 B |
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 729 B |
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 720 B After Width: | Height: | Size: 720 B |
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 726 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 153 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 159 B After Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 157 B After Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 464 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 543 B After Width: | Height: | Size: 543 B |
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 451 B After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 460 B After Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 440 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 505 B After Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 456 B |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 454 B |
31
modules/home/programs/thunderbird.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
in {
|
in {
|
||||||
options.marleyos.programs.vlc.enable = lib.mkEnableOption "vlc";
|
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; [
|
home.packages = with pkgs; [
|
||||||
vlc
|
vlc
|
||||||
];
|
];
|
39
modules/home/programs/wezterm.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,13 +1,14 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.marleyos.programs.zathura;
|
cfg = config.marleyos.programs.zathura;
|
||||||
in {
|
in {
|
||||||
options.marleyos.programs.zathura.enable = lib.mkEnableOption "zathura";
|
options.marleyos.programs.zathura.enable = lib.mkEnableOption "zathura";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
|
||||||
programs.zathura = {
|
programs.zathura = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|