mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 21:50:33 +01:00
Adds syncthing and some other stuff
This commit is contained in:
parent
62d0696d84
commit
574494bf0c
|
@ -5,14 +5,17 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [./syncthing.nix];
|
||||||
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
|
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
|
||||||
networking.hosts = {
|
# networking.hosts = {
|
||||||
"192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"];
|
# "192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"];
|
||||||
};
|
# };
|
||||||
environment.systemPackages = with pkgs; [
|
# environment.systemPackages = with pkgs; [
|
||||||
xdg-desktop-portal-hyprland
|
# xdg-desktop-portal-hyprland
|
||||||
xdg-desktop-portal
|
# xdg-desktop-portal
|
||||||
];
|
# ];
|
||||||
|
networking.firewall.allowedTCPPorts = [8384 22000];
|
||||||
|
networking.firewall.allowedUDPPorts = [22000 21027];
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
trusted-users = ["xqtc"];
|
trusted-users = ["xqtc"];
|
||||||
substituters = [
|
substituters = [
|
||||||
|
|
19
common/syncthing.nix
Normal file
19
common/syncthing.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "xqtc";
|
||||||
|
dataDir = "/home/xqtc/syncthing";
|
||||||
|
configDir = "${config.services.syncthing.dataDir}/.config/syncthing";
|
||||||
|
settings = {
|
||||||
|
gui = {
|
||||||
|
user = "xqtc";
|
||||||
|
# insecureSkipHostcheck = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,5 +1,8 @@
|
||||||
{config, lib, ...}:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.calibre-web = {
|
services.calibre-web = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -14,6 +14,7 @@ with lib; {
|
||||||
./transmission.nix
|
./transmission.nix
|
||||||
./lanrarari.nix
|
./lanrarari.nix
|
||||||
../../gc.nix
|
../../gc.nix
|
||||||
|
../../../common
|
||||||
];
|
];
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
|
@ -24,6 +25,11 @@ with lib; {
|
||||||
root * /var/www/website/build/
|
root * /var/www/website/build/
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
syncthing.heroin.trade {
|
||||||
|
reverse_proxy http://localhost:8384 {
|
||||||
|
header_up Some-Header "localhost"
|
||||||
|
}
|
||||||
|
}
|
||||||
demos.heroin.trade {
|
demos.heroin.trade {
|
||||||
root * /var/www/demos/
|
root * /var/www/demos/
|
||||||
file_server browse
|
file_server browse
|
||||||
|
@ -40,6 +46,8 @@ with lib; {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.syncthing.settings.gui.insecureSkipHostcheck = true;
|
||||||
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
@ -69,6 +77,7 @@ with lib; {
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
# TODO: Add remaining keys from https://meta.sr.ht/~xqrc.keys
|
# TODO: Add remaining keys from https://meta.sr.ht/~xqrc.keys
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJTLJqIVwnqFO64rnc66d234TFOdFXpDS9fJUA4/f4in xqtc@alastor"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7UkcmSVo+SeB5Obevz3mf3UHruYxn0UHUzoOs2gDBy xqtc@asmodeus"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7UkcmSVo+SeB5Obevz3mf3UHruYxn0UHUzoOs2gDBy xqtc@asmodeus"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPf3w5bHAssHthg9SPXVpG4w9v8m16X/0J3bjg08P6EA xqtc@seraphim"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPf3w5bHAssHthg9SPXVpG4w9v8m16X/0J3bjg08P6EA xqtc@seraphim"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJYa+LoHGGvu12iBufUcr3GD8tsq4LuJdwLjaDkTr0SL xqtc@lilith"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJYa+LoHGGvu12iBufUcr3GD8tsq4LuJdwLjaDkTr0SL xqtc@lilith"
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{config, pkgs, lib, ...}:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.lanraragi.enable = true;
|
services.lanraragi.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{config, lib, ...}:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.transmission = {
|
services.transmission = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue