49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
#
|
|
# Nasbak — NAS backup server configuration
|
|
#
|
|
|
|
{ config, pkgs, user, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/server
|
|
] ++ (import ../../modules/services/nasbackup);
|
|
|
|
# ── Server module options ───────────────────────────────────────────────
|
|
# No virtualisation on the backup NAS
|
|
|
|
# ── Host-specific settings ──────────────────────────────────────────────
|
|
boot = {
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
efi.efiSysMountPoint = "/boot";
|
|
timeout = 1;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
ssh.startAgent = false;
|
|
gnupg.agent = {
|
|
enable = false;
|
|
enableSSHSupport = true;
|
|
pinentryPackage = pkgs.pinentry-curses;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
qemuGuest.enable = true;
|
|
avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
publish = {
|
|
enable = true;
|
|
addresses = true;
|
|
userServices = true;
|
|
};
|
|
};
|
|
};
|
|
}
|