Modularize and fix wireguard

This commit is contained in:
zuma 2025-11-06 22:08:45 +01:00
parent 127fc040a5
commit 7b6e8c49f1
6 changed files with 265 additions and 229 deletions

View file

@ -1,20 +1,9 @@
{ config, lib, pkgs, ...}:
{
# Defining hostname
networking.hostName = "fifi";
# Setting up environment variables
environment.sessionVariables = rec {
NODE = "fifi";
};
config.filouterie.hostName = "fifi";
# Setting up wifi networking and static ip (out of DHCP range 50-200)
networking.wireless.enable = true;
networking.wireless.networks = {
"Atalante_5G" = {
@ -33,8 +22,5 @@
# Setting up bootloader in UEFI mode
boot.loader.grub.devices = [ "nodev"];
config.boot.loader.grub.devices = [ "nodev"];
}

View file

@ -1,13 +1,5 @@
{ config, lib, pkgs, ...}:
{
networking.hostName = "loulou";
# Setting up environment variables
environment.sessionVariables = rec {
NODE = "loulou";
};
config.filouterie.hostName = "loulou";
}

View file

@ -1,16 +1,9 @@
{ config, lib, pkgs, ...}:
{
config.filouterie.hostName = "riri";
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "riri";
# Setting up environment variables
environment.sessionVariables = rec {
NODE = "riri";
};
config.boot.loader.systemd-boot.enable = true;
config.boot.loader.efi.canTouchEfiVariables = true;
}