mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../users/default.nix
|
|
../../users/julien.nix
|
|
./hardware.nix
|
|
./home-julien.nix
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
disko = import ./disko.nix;
|
|
|
|
systemd.network.enable = true;
|
|
systemd.network.networks."10-wan" = {
|
|
matchConfig.Name = "ens18";
|
|
networkConfig = {
|
|
# start a DHCP Client for IPv4 Addressing/Routing
|
|
DHCP = "ipv4";
|
|
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
|
|
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45";
|
|
};
|
|
# make routing on this interface a dependency for network-online.target
|
|
linkConfig.RequiredForOnline = "routable";
|
|
};
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
environment.persistence."/persistent" = {
|
|
hideMounts = true;
|
|
directories = [
|
|
"/var/lib"
|
|
"/var/log"
|
|
];
|
|
files = [
|
|
"/etc/machine-id"
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.tailscale ];
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
luj.irc = {
|
|
enable = true;
|
|
nginx = {
|
|
enable = true;
|
|
subdomain = "irc";
|
|
};
|
|
};
|
|
|
|
luj.homepage.enable = true;
|
|
luj.mediaserver = {
|
|
enable = true;
|
|
tv.enable = true;
|
|
music.enable = true;
|
|
};
|
|
luj.deluge.interface = "wg0";
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|