feat: init biblios

This commit is contained in:
Luj 2024-12-21 20:29:24 +01:00
parent 26b7a30b5a
commit 6b99340b4d
Signed by: luj
GPG key ID: 6FC74C847011FD83
5 changed files with 225 additions and 0 deletions

View file

@ -0,0 +1,58 @@
{
inputs,
profiles,
...
}:
{
imports = [
./hardware.nix
./home-julien.nix
./garage.nix
];
machine.meta = {
arch = "x86_64-linux";
nixpkgs_version = inputs.nixpkgs;
hm_version = inputs.home-manager;
profiles = with profiles; [
vm-simple-network
server
behind-sniproxy
];
ips = {
public.ipv4 = "82.67.34.230";
vpn.ipv4 = "100.64.0.2";
public.ipv6 = "2a01:e0a:de4:a0e1:eb2:aaaa::46";
vpn.ipv6 = "fd7a:115c:a1e0::27";
};
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
deployment.tags = [ "server" ];
disko = import ./disko.nix;
luj.nginx.enable = true;
environment.persistence."/persistent" = {
hideMounts = true;
directories = [
"/var/lib"
"/var/log"
"/srv"
];
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
];
};
fileSystems."/srv".neededForBoot = true;
services.tailscale.enable = true;
system.stateVersion = "24.11";
}