41 lines
942 B
Nix
41 lines
942 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|