Compare commits

..

No commits in common. "46ae872eade418c8acf302aa64b8f155ad35d84a" and "3cf6b93eb5c4f58dd7efb68ae47715f90dcfc299" have entirely different histories.

5 changed files with 5 additions and 25 deletions

View File

@ -1,8 +1,5 @@
{ pkgs, config, lib, vars, ... }:
{
imports = [
./tmpfiles-workaround.nix
];
config = {
networking.hostName = "nixos-wsl";

View File

@ -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 ];
}

View File

@ -22,7 +22,7 @@
"/opt/hassio"
"/opt/hassio/.snapshots"
];
fn = (x: { options = [ "compress=zstd commit=300" ];});
fn = (x: { options = [ "compress=zstd" ];});
in lib.genAttrs mounts fn;
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)

View File

@ -19,7 +19,6 @@ femboymemes
feminineboys
flatpak
geometrydash
garn47
homeassistant
ihaveihaveihavereddit
linux

View File

@ -194,12 +194,7 @@
"deemix.protogen.io" = mkAuthProxy 6595;
# libreddit auth 8087
"libreddit.protogen.io" = {
useACMEHost = "protogen.io";
forceSSL = true;
locations."/".return = "302 https://redlib.protogen.io$request_uri";
};
"redlib.protogen.io" = mkAuthProxy 8087;
"libreddit.protogen.io" = mkAuthProxy 8087;
"rss.protogen.io" = mkReverseProxy 8082;
"blahaj.protogen.io" = mkReverseProxy 8086;
@ -305,15 +300,15 @@
# needed for mDNS in Home Assistant
networking.firewall.allowedUDPPorts = [ 5353 ];
systemd.services.redlib.environment = {
REDLIB_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
systemd.services.libreddit.environment = {
LIBREDDIT_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
builtins.readFile
(lib.splitString "\n")
(lib.filter (x: x != ""))
(lib.concatStringsSep "+")
];
};
services.redlib = {
services.libreddit = {
enable = true;
port = 8087;
package = pkgs.redlib;