Skip to content
nixos-homelabPublic

About

NixOS Homelab modules for storage support

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

64 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-homelab-storage

Databases and persistent storage on top of nixos-homelab: the PostgreSQL and Redis instances that apps in the other repos keep their data in, PersistentVolumes on an NFS export, and Samba file sharing on the host.

For the full list of module options, see the documentation, under Options.

Setup

{
  inputs = {
    ...
    homelab-storage = {
      url = "github:nixos-homelab/storage";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    ...
  };
}
{ inputs, ... }:
{
  imports = [ inputs.homelab-storage.nixosModules.postgresql ];
  config.homelab.postgresql = {
    enable = true;
    databases.myapp.backup.enable = true;
  };
}

Modules

  • postgresql: a shared PostgreSQL instance with declarative database creation and backups.
  • redis: a shared Redis instance with a database-index registry, to keep workloads from colliding on the same DB number.
  • nfs-provisioner: a dynamic PersistentVolume provisioner backed by an NFS export.
  • smb: Samba file sharing, with per-user passwords set up through setup-secrets.

About

NixOS Homelab modules for storage support

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages