Compare commits

..

5 Commits

Author SHA1 Message Date
Felix Albrigtsen
a05526b4bc Finish felixalbpc, cleanup home-manager 2024-09-13 14:07:18 +02:00
Felix Albrigtsen
f74bc0ec5e Multiple changes (cleanup, remove edison, add felixalbpc)
- Removes hold host edison
- Adds new host, felixalbpc, a work machine. This requires some cleanup
  to fit into the office network, use other SSH keys, etc.
- Clean up some package installs, putting more things into the common
  home-manager packages, rather than systemwide or host-specific homes.
- Various small changes like disabling Github Copilot on nvim startup.
2024-09-13 14:07:18 +02:00
6cc3332d38 nginx: set default virtualhosts 2024-09-12 20:18:05 +02:00
47c9ad9150 challenger: add ersatztv 2024-09-10 18:38:28 +02:00
3ce9a31dab flake: update nix-darwin 2024-09-10 17:05:48 +02:00
6 changed files with 37 additions and 3 deletions

6
flake.lock generated
View File

@ -96,11 +96,11 @@
]
},
"locked": {
"lastModified": 1722082646,
"narHash": "sha256-od8dBWVP/ngg0cuoyEl/w9D+TCNDj6Kh4tr151Aax7w=",
"lastModified": 1725975477,
"narHash": "sha256-sBnXxmYBb0S85Vkny97z2TFLd5SJW5o0k6KQNwpSLb0=",
"owner": "lnl7",
"repo": "nix-darwin",
"rev": "0413754b3cdb879ba14f6e96915e5fdf06c6aab6",
"rev": "5b2d8e9a47c3e17514650d1ce7d5e907114db82b",
"type": "github"
},
"original": {

View File

@ -12,6 +12,7 @@
./filesystems.nix
./services/calibre.nix
./services/ersatztv.nix
./services/jellyfin.nix
./services/komga.nix
./services/navidrome.nix

View File

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
let
domain = "etv.home.feal.no";
bind = "127.0.0.1:8409";
in {
virtualisation.oci-containers.containers.ersatztv = {
autoStart = true;
image = "jasongdove/ersatztv:latest-nvidia";
volumes = [
"/var/lib/ersatztv:/root/.local/share/ersatztv"
"/tank/media/other/ersatztv:/media" # Filler, watermarks, etc.
];
ports = [
"${bind}:8409"
];
environment = {
TZ = "Europe/Oslo";
};
extraOptions = [
"--device=/dev/dri"
];
};
services.nginx.virtualHosts.${domain} = {
locations."/".proxyPass = "http://${bind}";
};
}

View File

@ -10,6 +10,8 @@
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."cloud.feal.no".default = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];

View File

@ -12,6 +12,8 @@ in {
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."git.feal.no".default = true;
defaultListen = [
{
addr = "192.168.10.175";

View File

@ -9,6 +9,8 @@
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts."kinealbrigtsen.no".default = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];