migrates dnsc-server
This commit is contained in:
parent
ac4074245c
commit
996dc27419
15 changed files with 318 additions and 9 deletions
41
modules/hosts/dnsc-server/default.nix
Normal file
41
modules/hosts/dnsc-server/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue