updates...

This commit is contained in:
zack 2024-09-21 18:49:15 -04:00
parent 24716c999a
commit d94793e019
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35
10 changed files with 215 additions and 81 deletions

View file

@ -0,0 +1,49 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.pm-bridge;
in {
options.services.pm-bridge = with types; {
enable = mkBoolOpt false "Enable Protonmail Bridge";
package = lib.mkPackageOption pkgs "protonmail-bridge" {};
logLevel = lib.mkOption {
type = lib.types.nullOr (
lib.types.enum [
"panic"
"fatal"
"error"
"warn"
"info"
"debug"
]
);
default = null;
description = "Log level of the Proton Mail Bridge service. If set to null then the service uses it's default log level.";
};
};
config = mkIf cfg.enable {
systemd.user.services.protonmail-bridge = {
Unit = {
Description = "A Bridge to view Protonmail Messages in your local email client";
};
Service = let
logLevel = lib.optionalString (cfg.logLevel != null) "--log-level ${cfg.logLevel}";
in {
Type = "simple";
ExecStart = "${lib.getExe cfg.package} --noninteractive ${logLevel}";
Restart = "always";
};
Install = {
WantedBy = ["graphical-session.target"];
};
};
};
}

View file

@ -69,6 +69,16 @@ in {
sha256 = "sha256-BB9L84HjUnV1OUIp2U2lHYHEg5q4p/TgqLcsCvInkC8=";
};
}
{
name = "zsh-autocomplete";
file = "zsh-autocomplete.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "marlonrichert";
repo = "zsh-autocomplete";
rev = "008caaea55780dd2b55f119d6880c5b89e5e4bb2";
sha256 = "sha256-jibIHwT/oVQUSxVrT0SGFSMu1N05szPyHZ4Qc7v6Ntc=";
};
}
];
dirHashes = {

View file

@ -39,6 +39,10 @@ in {
};
config = mkIf cfg.enable {
home.packages = [
pkgs-unstable.xwayland
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
@ -216,14 +220,14 @@ in {
];
};
# fake a tray to let apps start
# https://github.com/nix-community/home-manager/issues/2064
systemd.user.targets.tray = {
Unit = {
Description = "Home Manager System Tray";
Requires = ["graphical-session-pre.target"];
};
};
# # fake a tray to let apps start
# # https://github.com/nix-community/home-manager/issues/2064
# systemd.user.targets.tray = {
# Unit = {
# Description = "Home Manager System Tray";
# Requires = ["graphical-session-pre.target"];
# };
# };
systemd.user.services = {
swaybg = mkService {