This commit is contained in:
parent
54954d6223
commit
54b43e4203
58 changed files with 224 additions and 242 deletions
|
@ -16,11 +16,9 @@
|
|||
../../users/opdavies.nix
|
||||
];
|
||||
|
||||
features = {
|
||||
core.openssh.enable = true;
|
||||
cli.podman.enable = true;
|
||||
desktop.dconf.enable = true;
|
||||
};
|
||||
core.openssh.enable = true;
|
||||
cli.podman.enable = true;
|
||||
desktop.dconf.enable = true;
|
||||
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
postgresqlBackup.enable = true;
|
||||
};
|
||||
|
||||
features.homelab = {
|
||||
homelab = {
|
||||
enable = true;
|
||||
|
||||
domain = "oliverdavies.uk";
|
||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "audiobookshelf";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
|
@ -10,10 +10,10 @@ with lib;
|
|||
let
|
||||
cfg = homelab.services.${service};
|
||||
service = "tubearchivist";
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
port = mkOption {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.homelab = {
|
||||
options.homelab = {
|
||||
enable = mkEnableOption "Enable homelab services and configuration";
|
||||
|
||||
domain = mkOption {
|
||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "forgejo";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
|
@ -9,11 +9,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "immich";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "jellyfin";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.paperless;
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "paperless";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
|
@ -9,12 +9,12 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
opts = options.services.${service};
|
||||
service = "homepage-dashboard";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
port = mkOption {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
homelab = config.features.homelab.services;
|
||||
homelab = config.homelab.services;
|
||||
|
||||
homepageCategories = [
|
||||
"Media"
|
||||
|
|
|
@ -4,11 +4,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "uptime-kuma";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
|
@ -9,11 +9,11 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = homelab.services.${service};
|
||||
homelab = config.features.homelab;
|
||||
homelab = config.homelab;
|
||||
service = "vaultwarden";
|
||||
in
|
||||
{
|
||||
options.features.homelab.services.${service} = {
|
||||
options.homelab.services.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
|
||||
url = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue