Compare commits
5 Commits
3cf6b93eb5
...
46ae872ead
Author | SHA1 | Date | |
---|---|---|---|
46ae872ead | |||
9c85910688 | |||
28cad3a3fb | |||
5782db8360 | |||
f9f32ba0f4 |
@ -1,5 +1,8 @@
|
|||||||
{ pkgs, config, lib, vars, ... }:
|
{ pkgs, config, lib, vars, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./tmpfiles-workaround.nix
|
||||||
|
];
|
||||||
config = {
|
config = {
|
||||||
networking.hostName = "nixos-wsl";
|
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"
|
||||||
"/opt/hassio/.snapshots"
|
"/opt/hassio/.snapshots"
|
||||||
];
|
];
|
||||||
fn = (x: { options = [ "compress=zstd" ];});
|
fn = (x: { options = [ "compress=zstd commit=300" ];});
|
||||||
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,6 +19,7 @@ femboymemes
|
|||||||
feminineboys
|
feminineboys
|
||||||
flatpak
|
flatpak
|
||||||
geometrydash
|
geometrydash
|
||||||
|
garn47
|
||||||
homeassistant
|
homeassistant
|
||||||
ihaveihaveihavereddit
|
ihaveihaveihavereddit
|
||||||
linux
|
linux
|
||||||
|
@ -194,7 +194,12 @@
|
|||||||
"deemix.protogen.io" = mkAuthProxy 6595;
|
"deemix.protogen.io" = mkAuthProxy 6595;
|
||||||
|
|
||||||
# libreddit auth 8087
|
# 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;
|
"rss.protogen.io" = mkReverseProxy 8082;
|
||||||
"blahaj.protogen.io" = mkReverseProxy 8086;
|
"blahaj.protogen.io" = mkReverseProxy 8086;
|
||||||
|
|
||||||
@ -300,15 +305,15 @@
|
|||||||
# needed for mDNS in Home Assistant
|
# needed for mDNS in Home Assistant
|
||||||
networking.firewall.allowedUDPPorts = [ 5353 ];
|
networking.firewall.allowedUDPPorts = [ 5353 ];
|
||||||
|
|
||||||
systemd.services.libreddit.environment = {
|
systemd.services.redlib.environment = {
|
||||||
LIBREDDIT_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [
|
REDLIB_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.libreddit = {
|
services.redlib = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 8087;
|
port = 8087;
|
||||||
package = pkgs.redlib;
|
package = pkgs.redlib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user