mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../users/default.nix
|
|
../../users/julien.nix
|
|
./hardware.nix
|
|
./home-julien.nix
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
deployment.targetHost = lib.mkForce "192.168.0.126";
|
|
|
|
disko = import ./disko.nix;
|
|
|
|
systemd.network.enable = true;
|
|
systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
|
|
|
networking.useNetworkd = 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)
|
|
IPv6AcceptRA = true;
|
|
};
|
|
# 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;
|
|
files = [
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
];
|
|
};
|
|
|
|
luj.irc = {
|
|
enable = true;
|
|
nginx = {
|
|
enable = true;
|
|
subdomain = "irc";
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|