55 lines
1.5 KiB
Nix
Executable file
55 lines
1.5 KiB
Nix
Executable file
{
|
|
description = "Epic";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
|
|
hexname-backend.url = "git+ssh://forgejo@git.lukadeka.com:6968/LukaDeka/HexName-Backend.git";
|
|
};
|
|
|
|
outputs = { nixpkgs, nixpkgs-stable, hexname-backend, ... } @ inputs: {
|
|
nixosConfigurations = {
|
|
hexname-ns1 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs hexname-backend; };
|
|
modules = [
|
|
######## Basics ########
|
|
./configuration.nix
|
|
./hardware-configuration.nix
|
|
|
|
######## HexName configuration ########
|
|
./pkgs/reverse-proxy.nix
|
|
./pkgs/nginx.nix
|
|
./pkgs/backend.nix
|
|
|
|
./pkgs/powerdns.nix
|
|
./pkgs/postgres.nix
|
|
|
|
./pkgs/restic.nix # Defines `restic-backups-postgres.service`
|
|
|
|
######## Networking ########
|
|
./pkgs/ssh.nix
|
|
./pkgs/tailscale.nix
|
|
./pkgs/virtualisation.nix
|
|
./pkgs/stalwart.nix # Mailserver
|
|
|
|
######## Sysadmin ########
|
|
./pkgs/neovim.nix
|
|
./pkgs/common-packages.nix
|
|
./pkgs/aliases.nix
|
|
|
|
######## Services ########
|
|
./services/backup-postgres.nix # Runs `pg_dump` every 10 mins
|
|
./services/update-containers.nix # Runs podman pull weekly
|
|
./services/restart-powerdns.nix
|
|
|
|
######## etc. ########
|
|
./pkgs/extra.nix
|
|
./pkgs/zfs.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|