Group modules into feature directories
This commit is contained in:
parent
0baed7e6f6
commit
9782272a76
49 changed files with 244 additions and 83 deletions
|
@ -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
|
||||
|
|
16
nix/modules/nixos/features/gaming.nix
Normal file
16
nix/modules/nixos/features/gaming.nix
Normal 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 ];
|
||||
};
|
||||
}
|
7
nix/modules/nixos/features/homelab/default.nix
Normal file
7
nix/modules/nixos/features/homelab/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./gitea.nix
|
||||
./immich.nix
|
||||
./jellyfin.nix
|
||||
];
|
||||
}
|
21
nix/modules/nixos/features/homelab/gitea.nix
Normal file
21
nix/modules/nixos/features/homelab/gitea.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
16
nix/modules/nixos/features/homelab/immich.nix
Normal file
16
nix/modules/nixos/features/homelab/immich.nix
Normal 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 ];
|
||||
};
|
||||
}
|
12
nix/modules/nixos/features/homelab/jellyfin.nix
Normal file
12
nix/modules/nixos/features/homelab/jellyfin.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
HTTP_PORT = 2222;
|
||||
};
|
||||
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.immich.enable = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.immich-cli ];
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue