restructure homebox

This commit is contained in:
2026-04-23 08:54:59 -05:00
parent 806e8900b4
commit b28d7babf1
14 changed files with 87 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.authentik = { config, lib, pkgs, ... }: let flake.nixosModules.authentik = { config, lib, pkgs, ... }: let
@@ -10,6 +10,10 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
networking.firewall.interfaces = { networking.firewall.interfaces = {

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.home-assistant = { config, lib, ... }: let flake.nixosModules.home-assistant = { config, lib, ... }: let
@@ -8,6 +8,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
environment.etc."home-assistant/configuration.yaml".source = ./configuration.yaml; environment.etc."home-assistant/configuration.yaml".source = ./configuration.yaml;

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.jellyfin = { config, lib, pkgs, ... }: let flake.nixosModules.jellyfin = { config, lib, pkgs, ... }: let
@@ -8,6 +8,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
networking.firewall.allowedUDPPorts = [ 7359 ]; networking.firewall.allowedUDPPorts = [ 7359 ];

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.n8n = { config, lib, pkgs, ... }: let flake.nixosModules.n8n = { config, lib, pkgs, ... }: let
@@ -8,6 +8,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {

View File

@@ -1,4 +1,4 @@
{ inputs, ... }: { { self, inputs, ... }: {
flake.nixosModules.netbird = { config, lib, pkgs, ... }: { flake.nixosModules.netbird = { config, lib, pkgs, ... }: {
@@ -33,6 +33,11 @@
flake.nixosModules.netbird-docker = { config, lib, pkgs, ... }: { flake.nixosModules.netbird-docker = { config, lib, pkgs, ... }: {
imports = [
self.nixosModules.docker
];
config = { config = {
networking.firewall.allowedUDPPorts = [ 3478 ]; networking.firewall.allowedUDPPorts = [ 3478 ];

View File

@@ -1,4 +1,4 @@
{ inputs, ... }: { { self, inputs, ... }: {
flake.nixosModules.ollama = { config, lib, ... }: { flake.nixosModules.ollama = { config, lib, ... }: {
@@ -29,6 +29,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.openwebui = { config, lib, pkgs, ... }: let flake.nixosModules.openwebui = { config, lib, pkgs, ... }: let
@@ -8,6 +8,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
virtualisation.oci-containers.containers.openwebui = { virtualisation.oci-containers.containers.openwebui = {

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.pihole = { config, lib, ... }: let flake.nixosModules.pihole = { config, lib, ... }: let
@@ -10,6 +10,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
virtualisation.docker.daemon.settings.dns = [ "192.168.101.12" ]; virtualisation.docker.daemon.settings.dns = [ "192.168.101.12" ];

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.portainer = { config, lib, ... }: let flake.nixosModules.portainer = { config, lib, ... }: let
@@ -10,6 +10,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
networking.firewall.interfaces = { networking.firewall.interfaces = {

View File

@@ -1,4 +1,4 @@
{ ... }: { { self, ... }: {
flake.nixosModules.searxng = { config, lib, ... }: let flake.nixosModules.searxng = { config, lib, ... }: let
@@ -8,6 +8,11 @@
in { in {
imports = [
self.nixosModules.docker
];
config = { config = {
environment.etc."searxng/settings.yml".source = ./settings.yml; environment.etc."searxng/settings.yml".source = ./settings.yml;

View File

@@ -1,7 +1,12 @@
{ ... }: { { self, ... }: {
flake.nixosModules.traefik = { config, lib, ... }: { flake.nixosModules.traefik = { config, lib, ... }: {
imports = [
self.nixosModules.docker
];
config = { config = {
networking.firewall.allowedTCPPorts = [ 80 81 443 444 2222 ]; networking.firewall.allowedTCPPorts = [ 80 81 443 444 2222 ];

View File

@@ -3,13 +3,32 @@
flake.nixosModules.homebox = { config, pkgs, lib, ... }: flake.nixosModules.homebox = { config, pkgs, lib, ... }:
{ {
imports = imports = with self.nixosModules; [
[
inputs.disko.nixosModules.default inputs.disko.nixosModules.default
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
self.nixosModules.default self.nixosModules.default
pipewire
avahi
netbird
openssh
docker
traefik
searxng
home-assistant
netbird-docker
n8n
code-server
gitea
jellyfin
nginx
ollama-docker
openwebui
pihole
portainer
]; ];

View File

@@ -3,7 +3,7 @@
flake.nixosConfigurations."homebox" = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations."homebox" = inputs.nixpkgs.lib.nixosSystem {
modules = with self.nixosModules; [ modules = with self.nixosModules; [
(user-nathan "laptop") user-nathan
homebox homebox
homebox-hardware homebox-hardware
self.diskoConfigurations.homebox self.diskoConfigurations.homebox

View File

@@ -7,7 +7,6 @@
imports = with self.nixosModules; [ imports = with self.nixosModules; [
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
self.nixosModules.default
self.nixosModules.default self.nixosModules.default
aurora-greeter aurora-greeter
hyprland hyprland