random changes

This commit is contained in:
catvayor 2024-04-15 09:17:59 +02:00
parent f44aa47daa
commit bb62b20c4b
4 changed files with 38 additions and 4 deletions

View file

@ -59,7 +59,7 @@ in {
}; };
BOcal = { BOcal = {
deployment.targetHost = "192.168.222.1"; deployment.targetHost = "bocal.tmp";
imports = [ ./BOcal/configuration.nix ]; imports = [ ./BOcal/configuration.nix ];
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
@ -88,6 +88,8 @@ in {
boot.supportedFilesystems = [ "bcachefs" ]; boot.supportedFilesystems = [ "bcachefs" ];
programs.zsh.enable = true; programs.zsh.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
services.qemuGuest.enable = true;
boot.kernelParams = [ "console=ttyS0" ];
environment.etc = { environment.etc = {
"config_base.nix" = { "config_base.nix" = {
@ -108,7 +110,8 @@ in {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
keyMap = "fr"; keyMap = "fr";
}; };
services.netbird.enable = true; #services.netbird.enable = true;
services.qemuGuest.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"

View file

@ -6,6 +6,7 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
# ./router.nix
]; ];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -54,8 +55,6 @@
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
programs.zsh.enable = true; programs.zsh.enable = true;
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
brightnessctl brightnessctl

View file

@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }: {
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
systemd.network = {
enable = true;
networks = {
"uplink" = {
name = "wlp0s20f3";
DHCP = "ipv4";
networkConfig.IPMasquerade = "ipv4";
};
"10-enp2s0" = {
name = "enp2s0";
address = [ "192.168.2.1/24" ];
networkConfig.DHCPServer = "yes";
# dhcpServerConfig = {
# PoolOffset = 100;
# PoolSize = 100;
# BootServerAddress = "192.168.222.1";
# };
};
};
};
networking.nat = {
enable = true;
internalInterfaces = [ "enp2s0" ];
externalInterface = "wlp0s20f3";
};
networking.firewall.allowedUDPPorts = [ 67 ];
}

View file

@ -43,5 +43,6 @@
programs.starship = { programs.starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
settings.battery.disabled = true;
}; };
} }