Group modules into feature directories

This commit is contained in:
Oliver Davies 2024-11-26 08:40:00 +00:00
parent 0baed7e6f6
commit 9782272a76
49 changed files with 244 additions and 83 deletions

View file

@ -2,11 +2,10 @@
imports = [
./autorandr.nix
./docker.nix
./features/gaming.nix
./features/homelab
./fonts.nix
./gitea.nix
./i3.nix
./immich.nix
./jellyfin.nix
./kanata.nix
./rofi.nix
./rsnapshot.nix

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
{
options.features.desktop.gaming.enable = lib.mkEnableOption "Enable games";
config = lib.mkIf config.features.desktop.gaming.enable {
programs.steam.enable = true;
environment.systemPackages = with pkgs; [ zeroad ];
};
}

View file

@ -0,0 +1,7 @@
{
imports = [
./gitea.nix
./immich.nix
./jellyfin.nix
];
}

View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
{
options.features.desktop.homelab.gitea.enable = lib.mkEnableOption "Enable gitea";
config = lib.mkIf config.features.desktop.homelab.gitea.enable {
services.gitea = {
enable = true;
settings = {
server = {
HTTP_PORT = 2222;
};
service = {
DISABLE_REGISTRATION = true;
};
};
};
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
{
options.features.desktop.homelab.immich.enable = lib.mkEnableOption "Enable immich";
config = lib.mkIf config.features.desktop.homelab.immich.enable {
services.immich.enable = true;
environment.systemPackages = [ pkgs.immich-cli ];
};
}

View file

@ -0,0 +1,12 @@
{ config, lib, ... }:
{
options.features.desktop.homelab.jellyfin.enable = lib.mkEnableOption "Enable jellyfin";
config = lib.mkIf config.features.desktop.homelab.jellyfin.enable {
services.jellyfin = {
enable = true;
openFirewall = true;
};
};
}

View file

@ -1,17 +0,0 @@
{ pkgs, ... }:
{
services.gitea = {
enable = true;
settings = {
server = {
HTTP_PORT = 2222;
};
service = {
DISABLE_REGISTRATION = true;
};
};
};
}

View file

@ -1,7 +0,0 @@
{ pkgs, ... }:
{
services.immich.enable = true;
environment.systemPackages = [ pkgs.immich-cli ];
}

View file

@ -1,6 +0,0 @@
{
services.jellyfin = {
enable = true;
openFirewall = true;
};
}