migrates dnsc-server

This commit is contained in:
Dennis Schoepf 2026-03-04 22:46:08 +01:00
parent ac4074245c
commit 996dc27419
15 changed files with 318 additions and 9 deletions

View file

@ -0,0 +1,41 @@
{ inputs, config, ... }:
let
hostname = "dnsc-server";
in
{
flake.nixosConfigurations.${hostname} = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = with config.flake.modules.nixos; [
agenix.nixosModules.default
home-manager
base
git
ssh
zfs
ups
cli-tools
nix
jellyfin
restic
samba-share
{
imports = [ ./_hardware-configuration.nix ];
samba-share.path = "/main/share";
samba-share.allowedHosts = "192.168.178. 127.0.0.1 localhost";
networking.hostName = hostname;
system.stateVersion = "24.11";
# Secrets for this machine
age = {
identityPaths = [
"${config.users.users.dennis.home}/.ssh/id_ed25519"
];
secrets."restic/password" = {
file = ../../secrets/restic/password.age;
};
};
}
];
};
}