Skip to content

Commit

Permalink
feat: give up on homepage-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 12, 2023
1 parent 348f7a7 commit f823673
Showing 1 changed file with 1 addition and 52 deletions.
53 changes: 1 addition & 52 deletions machines/media.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ pkgs, ... }:
let
homepage-settings = pkgs.writeTextFile
{
name = "settings.yaml";
executable = false;
destination = "/var/lib/private/homepage-dashboard/settings.yaml";
text = ''
title: Media
layout:
Media:
style: row
columns: 4
'';
};

homepage-services = pkgs.writeTextFile
{
name = "services.yaml";
executable = false;
destination = "/var/lib/private/homepage-dashboard/services.yaml";
text = ''
- Media
- Sonarr:
icon: sonarr.png
href: http://media.local:8989/
description: Series management
widget:
type: sonarr
url: http://media.local:8989/
key: 71c261a86baf491784a60fa7489620fc
- Radarr:
icon: radarr.png
href: http://media.local:7878/
description: Movie management
widget:
type: radarr
url: http://media.local:7878/
key: 0042dc1c54444388b0ed680187f11b37
'';
};
in
{
{ pkgs, ... }: {
imports =
[
./shared.nix
Expand All @@ -56,11 +12,6 @@ in
networking.hostName = "media";
services.qemuGuest.enable = true;

services.homepage-dashboard = {
enable = true;
openFirewall = true;
};

services.nginx = {
enable = true;
virtualHosts."media.local" = {
Expand Down Expand Up @@ -123,8 +74,6 @@ in
};

environment.systemPackages = with pkgs; [
homepage-settings
homepage-services
unpackerr
];

Expand Down

0 comments on commit f823673

Please sign in to comment.