random changes
This commit is contained in:
parent
f44aa47daa
commit
bb62b20c4b
4 changed files with 38 additions and 4 deletions
7
hive.nix
7
hive.nix
|
@ -59,7 +59,7 @@ in {
|
|||
};
|
||||
|
||||
BOcal = {
|
||||
deployment.targetHost = "192.168.222.1";
|
||||
deployment.targetHost = "bocal.tmp";
|
||||
imports = [ ./BOcal/configuration.nix ];
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
|
@ -88,6 +88,8 @@ in {
|
|||
boot.supportedFilesystems = [ "bcachefs" ];
|
||||
programs.zsh.enable = true;
|
||||
services.openssh.enable = true;
|
||||
services.qemuGuest.enable = true;
|
||||
boot.kernelParams = [ "console=ttyS0" ];
|
||||
|
||||
environment.etc = {
|
||||
"config_base.nix" = {
|
||||
|
@ -108,7 +110,8 @@ in {
|
|||
font = "Lat2-Terminus16";
|
||||
keyMap = "fr";
|
||||
};
|
||||
services.netbird.enable = true;
|
||||
#services.netbird.enable = true;
|
||||
services.qemuGuest.enable = true;
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAA16foz+XzwKwyIR4wFgNIAE3Y7AfXyEsUZFVVz8Rie catvayor@katvayor"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
# ./router.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -54,8 +55,6 @@
|
|||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
programs.zsh.enable = true;
|
||||
|
||||
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
brightnessctl
|
||||
|
|
31
machines/kat-probook/router.nix
Normal file
31
machines/kat-probook/router.nix
Normal 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 ];
|
||||
}
|
|
@ -43,5 +43,6 @@
|
|||
programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
settings.battery.disabled = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue