Compare commits
No commits in common. "46ae872eade418c8acf302aa64b8f155ad35d84a" and "3cf6b93eb5c4f58dd7efb68ae47715f90dcfc299" have entirely different histories.
46ae872ead
...
3cf6b93eb5
@ -1,8 +1,5 @@
|
|||||||
{ pkgs, config, lib, vars, ... }:
|
{ pkgs, config, lib, vars, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./tmpfiles-workaround.nix
|
|
||||||
];
|
|
||||||
config = {
|
config = {
|
||||||
networking.hostName = "nixos-wsl";
|
networking.hostName = "nixos-wsl";
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
config.systemd.tmpfiles.packages = let
|
|
||||||
package = pkgs.runCommand "no-systemd-tmpfiles-nocow" {} ''
|
|
||||||
mkdir -p "$out/lib/tmpfiles.d"
|
|
||||||
cd "$out/lib/tmpfiles.d"
|
|
||||||
|
|
||||||
ln -s /dev/null journal-nocow.conf
|
|
||||||
'';
|
|
||||||
in lib.mkAfter [ package ];
|
|
||||||
}
|
|
@ -22,7 +22,7 @@
|
|||||||
"/opt/hassio"
|
"/opt/hassio"
|
||||||
"/opt/hassio/.snapshots"
|
"/opt/hassio/.snapshots"
|
||||||
];
|
];
|
||||||
fn = (x: { options = [ "compress=zstd commit=300" ];});
|
fn = (x: { options = [ "compress=zstd" ];});
|
||||||
in lib.genAttrs mounts fn;
|
in lib.genAttrs mounts fn;
|
||||||
|
|
||||||
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
|
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
|
||||||
|
@ -19,7 +19,6 @@ femboymemes
|
|||||||
feminineboys
|
feminineboys
|
||||||
flatpak
|
flatpak
|
||||||
geometrydash
|
geometrydash
|
||||||
garn47
|
|
||||||
homeassistant
|
homeassistant
|
||||||
ihaveihaveihavereddit
|
ihaveihaveihavereddit
|
||||||
linux
|
linux
|
||||||
|
@ -194,12 +194,7 @@
|
|||||||
"deemix.protogen.io" = mkAuthProxy 6595;
|
"deemix.protogen.io" = mkAuthProxy 6595;
|
||||||
|
|
||||||
# libreddit auth 8087
|
# libreddit auth 8087
|
||||||
"libreddit.protogen.io" = {
|
"libreddit.protogen.io" = mkAuthProxy 8087;
|
||||||
useACMEHost = "protogen.io";
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/".return = "302 https://redlib.protogen.io$request_uri";
|
|
||||||
};
|
|
||||||
"redlib.protogen.io" = mkAuthProxy 8087;
|
|
||||||
"rss.protogen.io" = mkReverseProxy 8082;
|
"rss.protogen.io" = mkReverseProxy 8082;
|
||||||
"blahaj.protogen.io" = mkReverseProxy 8086;
|
"blahaj.protogen.io" = mkReverseProxy 8086;
|
||||||
|
|
||||||
@ -305,15 +300,15 @@
|
|||||||
# needed for mDNS in Home Assistant
|
# needed for mDNS in Home Assistant
|
||||||
networking.firewall.allowedUDPPorts = [ 5353 ];
|
networking.firewall.allowedUDPPorts = [ 5353 ];
|
||||||
|
|
||||||
systemd.services.redlib.environment = {
|
systemd.services.libreddit.environment = {
|
||||||
REDLIB_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
|
LIBREDDIT_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
|
||||||
builtins.readFile
|
builtins.readFile
|
||||||
(lib.splitString "\n")
|
(lib.splitString "\n")
|
||||||
(lib.filter (x: x != ""))
|
(lib.filter (x: x != ""))
|
||||||
(lib.concatStringsSep "+")
|
(lib.concatStringsSep "+")
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.redlib = {
|
services.libreddit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 8087;
|
port = 8087;
|
||||||
package = pkgs.redlib;
|
package = pkgs.redlib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user