mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: add static ip for 40gbit nic
This commit is contained in:
parent
29521f8994
commit
ac6f4b4fcd
1 changed files with 18 additions and 5 deletions
|
|
@ -20,6 +20,24 @@
|
||||||
cpuFreqGovernor = lib.mkDefault "performance";
|
cpuFreqGovernor = lib.mkDefault "performance";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "yoshino";
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.network.networks."99-local" = {
|
||||||
|
matchConfig.name = "enp68s0";
|
||||||
|
address = [
|
||||||
|
"192.168.1.100/24"
|
||||||
|
];
|
||||||
|
routes = [
|
||||||
|
{
|
||||||
|
Gateway = "172.16.10.1";
|
||||||
|
GatewayOnLink = false;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
liv = {
|
liv = {
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
creative.enable = true;
|
creative.enable = true;
|
||||||
|
|
@ -28,11 +46,6 @@
|
||||||
gui.enable = true;
|
gui.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "yoshino";
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams = [ ];
|
kernelParams = [ ];
|
||||||
kernelModules = [ "acpi_call" ];
|
kernelModules = [ "acpi_call" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue