refactor(hosts): move host configurations into folders

This commit is contained in:
Felix Schröter 2025-05-01 16:08:47 +02:00
parent 7e5e0d2c87
commit 02115fe73d
Signed by: felschr
GPG key ID: 671E39E6744C807D
5 changed files with 48 additions and 47 deletions

View file

@ -12,7 +12,7 @@
inputs.nixos-hardware.nixosModules.common-gpu-amd inputs.nixos-hardware.nixosModules.common-gpu-amd
(self.lib.createSystemModule "home-pc" { (self.lib.createSystemModule "home-pc" {
hardwareConfig = ../hardware/home-pc.nix; hardwareConfig = ../hardware/home-pc.nix;
config = ../hosts/home-pc.nix; config = ../hosts/home-pc/default.nix;
}) })
self.lib.createMediaGroup self.lib.createMediaGroup
(self.lib.createUserModule "felschr" { (self.lib.createUserModule "felschr" {
@ -51,7 +51,7 @@
inputs.matrix-appservices.nixosModule inputs.matrix-appservices.nixosModule
(self.lib.createSystemModule "home-server" { (self.lib.createSystemModule "home-server" {
hardwareConfig = ../hardware/lattepanda.nix; hardwareConfig = ../hardware/lattepanda.nix;
config = ../hosts/home-server.nix; config = ../hosts/home-server/default.nix;
}) })
self.lib.createMediaGroup self.lib.createMediaGroup
(self.lib.createUserModule "felschr" { (self.lib.createUserModule "felschr" {

View file

@ -2,24 +2,24 @@
{ {
imports = [ imports = [
../hardware/base.nix ../../hardware/base.nix
../hardware/bluetooth.nix ../../hardware/bluetooth.nix
../hardware/xbox.nix ../../hardware/xbox.nix
../hardware/steam.nix ../../hardware/steam.nix
../hardware/ledger.nix ../../hardware/ledger.nix
../system/desktop.nix ../../system/desktop.nix
../system/printing/home.nix ../../system/printing/home.nix
../system/gaming.nix ../../system/gaming.nix
../desktop ../../desktop
../desktop/cosmic.nix ../../desktop/cosmic.nix
../virtualisation/containers.nix ../../virtualisation/containers.nix
../virtualisation/podman.nix ../../virtualisation/podman.nix
../virtualisation/libvirt.nix ../../virtualisation/libvirt.nix
../modules/systemdNotify.nix ../../modules/systemdNotify.nix
../services/samba/home-pc.nix ../../services/samba/home-pc.nix
../services/restic/home-pc.nix ../../services/restic/home-pc.nix
../services/pcscd.nix ../../services/pcscd.nix
../services/open-webui.nix ../../services/open-webui.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View file

@ -18,33 +18,33 @@ let
in in
{ {
imports = [ imports = [
../hardware/base.nix ../../hardware/base.nix
../desktop/x11.nix ../../desktop/x11.nix
../system/server.nix ../../system/server.nix
../virtualisation/containers.nix ../../virtualisation/containers.nix
../virtualisation/podman.nix ../../virtualisation/podman.nix
../modules/inadyn.nix ../../modules/inadyn.nix
../modules/systemdNotify.nix ../../modules/systemdNotify.nix
../services/postgres ../../services/postgres
../services/mail.nix ../../services/mail.nix
../services/lldap.nix ../../services/lldap.nix
../services/authelia.nix ../../services/authelia.nix
../services/forgejo ../../services/forgejo
../services/restic/home-server.nix ../../services/restic/home-server.nix
../services/samba/home-server.nix ../../services/samba/home-server.nix
# ../services/kodi.nix # ../../services/kodi.nix
../services/jellyfin.nix ../../services/jellyfin.nix
../services/etebase.nix ../../services/etebase.nix
../services/website.nix ../../services/website.nix
../services/wkd.nix ../../services/wkd.nix
../services/home-assistant ../../services/home-assistant
../services/matrix ../../services/matrix
../services/immich.nix ../../services/immich.nix
../services/miniflux.nix ../../services/miniflux.nix
../services/paperless.nix ../../services/paperless.nix
../services/nextcloud.nix ../../services/nextcloud.nix
../services/collabora-office.nix ../../services/collabora-office.nix
../services/calibre-web.nix ../../services/calibre-web.nix
]; ];
age.secrets.cloudflare.file = ../secrets/cloudflare.age; age.secrets.cloudflare.file = ../secrets/cloudflare.age;

View file

@ -13,6 +13,7 @@
hostname = "penguin"; hostname = "penguin";
timezone = "Europe/Berlin"; timezone = "Europe/Berlin";
ipaddr = "192.168.0.1"; ipaddr = "192.168.0.1";
packages = [ "ds-lite" ];
}; };
}; };
} }