need the stuff on my laptop
This commit is contained in:
parent
bdf72eb68d
commit
eaea15fa3a
3 changed files with 106 additions and 2 deletions
|
|
@ -96,10 +96,10 @@
|
||||||
(lib.mkIf (config.terminal.kitty.enable) "$mod, return, exec, kitty")
|
(lib.mkIf (config.terminal.kitty.enable) "$mod, return, exec, kitty")
|
||||||
(lib.mkIf (config.desktop.grimblast.enable) ", print, exec, GRIMBLAST_EDITOR=gradia grimblast edit area")
|
(lib.mkIf (config.desktop.grimblast.enable) ", print, exec, GRIMBLAST_EDITOR=gradia grimblast edit area")
|
||||||
(lib.mkIf (config.desktop.rofi.enable) (
|
(lib.mkIf (config.desktop.rofi.enable) (
|
||||||
lib.mkIf (config.misc.bitwarden.enable) "$mod, B, exec, rbw unlocked || kitty --class kitty-floating -e rbw unlock; rofi-rbw"
|
lib.mkIf (config.misc.bitwarden.enable) "$mod, B, exec, rbw unlocked || kitty --class kitty-floating -e rbw unlock; rofi-rbw; sleep 30; rbw lock"
|
||||||
))
|
))
|
||||||
(lib.mkIf (config.desktop.walker.enable) (
|
(lib.mkIf (config.desktop.walker.enable) (
|
||||||
lib.mkIf (config.misc.bitwarden.enable) "$mod, B, exec, rbw unlocked || kitty --class kitty-floating -e rbw unlock; selected=$(rbw list | walker -d); wl-copy $(rbw get \"$selected\")"
|
lib.mkIf (config.misc.bitwarden.enable) "$mod, B, exec, rbw unlocked || kitty --class kitty-floating -e rbw unlock; selected=$(rbw list | walker -d); wl-copy $(rbw get \"$selected\"); sleep 30; rbw lock"
|
||||||
))
|
))
|
||||||
"$mod, F, fullscreen, 1"
|
"$mod, F, fullscreen, 1"
|
||||||
"$shiftmod, F, fullscreen, 0"
|
"$shiftmod, F, fullscreen, 0"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
audio = {
|
audio = {
|
||||||
enable = lib.mkEnableOption "enable all audio media";
|
enable = lib.mkEnableOption "enable all audio media";
|
||||||
tenacity.enable = lib.mkEnableOption "enable tenacity";
|
tenacity.enable = lib.mkEnableOption "enable tenacity";
|
||||||
|
flac.enable = lib.mkEnableOption "enable flac";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -18,10 +19,12 @@
|
||||||
config = {
|
config = {
|
||||||
media.audio = lib.mkIf config.media.audio.enable {
|
media.audio = lib.mkIf config.media.audio.enable {
|
||||||
tenacity.enable = lib.mkDefault true;
|
tenacity.enable = lib.mkDefault true;
|
||||||
|
flac.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(lib.mkIf (config.media.audio.tenacity.enable) tenacity)
|
(lib.mkIf (config.media.audio.tenacity.enable) tenacity)
|
||||||
|
(lib.mkIf (config.media.audio.flac.enable) flac)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
101
modules/server/arr/default.nix
Normal file
101
modules/server/arr/default.nix
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.server = {
|
||||||
|
arr = {
|
||||||
|
enable = lib.mkEnableOption "enable full arr";
|
||||||
|
prowlarr = {
|
||||||
|
enable = lib.mkEnableOption "enable prowlarr";
|
||||||
|
port = lib.mkOption {
|
||||||
|
default = 9696;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
radarr = {
|
||||||
|
enable = lib.mkEnableOption "enable radarr";
|
||||||
|
port = lib.mkOption {
|
||||||
|
default = 7878;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
sonarr = {
|
||||||
|
enable = lib.mkEnableOption "enable sonarr";
|
||||||
|
port = lib.mkOption {
|
||||||
|
default = 8989;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
lidarr = {
|
||||||
|
enable = lib.mkEnableOption "enable lidarr";
|
||||||
|
port = lib.mkOption {
|
||||||
|
default = 8686;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
qbittorrent = {
|
||||||
|
enable = lib.mkEnableOption "enable qbittorrent";
|
||||||
|
port = lib.mkOption {
|
||||||
|
default = 8088;
|
||||||
|
};
|
||||||
|
password = lib.mkOption {
|
||||||
|
default = "EO3HgIK+QJNQN53efrF6zQ==:Ju6k++dsM4pLLgYjP9sLbUWOiNuQMrUH/g6QArdtKXzYisuzaR+XeJL4hEC9Zo3ekVa8EVnPnQu/mJoHxxkLOA==";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
config.server.arr = lib.mkIf config.server.arr.enable {
|
||||||
|
prowlarr.enable = lib.mkDefault true;
|
||||||
|
radarr.enable = lib.mkDefault true;
|
||||||
|
sonarr.enable = lib.mkDefault true;
|
||||||
|
lidarr.enable = lib.mkDefault true;
|
||||||
|
qbittorrent.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
services = {
|
||||||
|
prowlarr = lib.mkIf config.server.arr.prowlarr.enable {
|
||||||
|
enable = true;
|
||||||
|
server = {
|
||||||
|
bindaddress = "0.0.0.0";
|
||||||
|
port = config.server.arr.prowlarr.port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
radarr = lib.mkIf config.server.arr.radarr.enable {
|
||||||
|
enable = true;
|
||||||
|
server = {
|
||||||
|
bindaddress = "0.0.0.0";
|
||||||
|
port = config.server.arr.radarr.port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
sonarr = lib.mkIf config.server.arr.sonarr.enable {
|
||||||
|
enable = true;
|
||||||
|
server = {
|
||||||
|
bindaddress = "0.0.0.0";
|
||||||
|
port = config.server.arr.sonarr.port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lidarr = lib.mkIf config.server.arr.lidarr.enable {
|
||||||
|
enable = true;
|
||||||
|
server = {
|
||||||
|
bindaddress = "0.0.0.0";
|
||||||
|
port = config.server.arr.lidarr.port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
qbittorrent = lib.mkIf config.server.arr.qbittorrent.enable {
|
||||||
|
enable = false;
|
||||||
|
webuiPort = config.server.arr.qbittorrent.port;
|
||||||
|
serverConfig = {
|
||||||
|
LegalNotice.Accepted = true;
|
||||||
|
Preferences = {
|
||||||
|
WebUI = {
|
||||||
|
Password_PBKDF2 = config.server.arr.qbittorrent.password;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue