Compare commits
5 Commits
3cf6b93eb5
...
46ae872ead
Author | SHA1 | Date | |
---|---|---|---|
46ae872ead | |||
9c85910688 | |||
28cad3a3fb | |||
5782db8360 | |||
f9f32ba0f4 |
@ -1,5 +1,8 @@
|
||||
{ pkgs, config, lib, vars, ... }:
|
||||
{
|
||||
imports = [
|
||||
./tmpfiles-workaround.nix
|
||||
];
|
||||
config = {
|
||||
networking.hostName = "nixos-wsl";
|
||||
|
||||
|
11
hosts/nixos-wsl/tmpfiles-workaround.nix
Normal file
11
hosts/nixos-wsl/tmpfiles-workaround.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ 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/.snapshots"
|
||||
];
|
||||
fn = (x: { options = [ "compress=zstd" ];});
|
||||
fn = (x: { options = [ "compress=zstd commit=300" ];});
|
||||
in lib.genAttrs mounts fn;
|
||||
|
||||
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
|
||||
|
@ -19,6 +19,7 @@ femboymemes
|
||||
feminineboys
|
||||
flatpak
|
||||
geometrydash
|
||||
garn47
|
||||
homeassistant
|
||||
ihaveihaveihavereddit
|
||||
linux
|
||||
|
@ -194,7 +194,12 @@
|
||||
"deemix.protogen.io" = mkAuthProxy 6595;
|
||||
|
||||
# libreddit auth 8087
|
||||
"libreddit.protogen.io" = mkAuthProxy 8087;
|
||||
"libreddit.protogen.io" = {
|
||||
useACMEHost = "protogen.io";
|
||||
forceSSL = true;
|
||||
locations."/".return = "302 https://redlib.protogen.io$request_uri";
|
||||
};
|
||||
"redlib.protogen.io" = mkAuthProxy 8087;
|
||||
"rss.protogen.io" = mkReverseProxy 8082;
|
||||
"blahaj.protogen.io" = mkReverseProxy 8086;
|
||||
|
||||
@ -300,15 +305,15 @@
|
||||
# needed for mDNS in Home Assistant
|
||||
networking.firewall.allowedUDPPorts = [ 5353 ];
|
||||
|
||||
systemd.services.libreddit.environment = {
|
||||
LIBREDDIT_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
|
||||
systemd.services.redlib.environment = {
|
||||
REDLIB_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
|
||||
builtins.readFile
|
||||
(lib.splitString "\n")
|
||||
(lib.filter (x: x != ""))
|
||||
(lib.concatStringsSep "+")
|
||||
];
|
||||
};
|
||||
services.libreddit = {
|
||||
services.redlib = {
|
||||
enable = true;
|
||||
port = 8087;
|
||||
package = pkgs.redlib;
|
||||
|
Loading…
x
Reference in New Issue
Block a user