updates...
This commit is contained in:
parent
24716c999a
commit
d94793e019
10 changed files with 215 additions and 81 deletions
49
modules/home/services/pm-bridge/default.nix
Normal file
49
modules/home/services/pm-bridge/default.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
25
modules/nixos/sites/invidious/default.nix
Normal file
25
modules/nixos/sites/invidious/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.custom; let
|
||||
cfg = config.sites.invidious;
|
||||
in {
|
||||
options.sites.invidious = with types; {
|
||||
enable = mkBoolOpt false "Enable invidious instance";
|
||||
|
||||
domain = mkStringOpt "vid.zoeys.computer" "The domain of the invidious instance";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.invidious = {
|
||||
enable = true;
|
||||
domain = cfg.domain;
|
||||
|
||||
nginx.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
22
modules/nixos/sites/jellyfin/default.nix
Normal file
22
modules/nixos/sites/jellyfin/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.custom; let
|
||||
cfg = config.sites.jellyfin;
|
||||
in {
|
||||
options.sites.jellyfin = with types; {
|
||||
enable = mkBoolOpt false "Enable jellyfin";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
dataDir = "/mnt/lul";
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -37,7 +37,7 @@ in {
|
|||
spacing = "normal"
|
||||
serifs = "sans"
|
||||
noCvSs = true
|
||||
exportGlyphNames = false
|
||||
exportGlyphNames = true
|
||||
|
||||
[buildPlans.IosevkaCustom.variants]
|
||||
inherits = "ss10"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue