refactor
This commit is contained in:
parent
fd5f22ae65
commit
845c3373ba
9 changed files with 65 additions and 55 deletions
|
|
@ -1,4 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, ...}:
|
||||
let
|
||||
globals = import ../../config/globals.nix;
|
||||
in {
|
||||
imports = [
|
||||
../../profiles/workstation-bspwm.nix
|
||||
../../modules/hardware/bepovim.nix
|
||||
|
|
@ -37,7 +40,7 @@
|
|||
|
||||
users.users.lomig = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["networkmanager" "lp" "wheel"];
|
||||
extraGroups = [ "lp" "wheel"];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
|
|
@ -49,21 +52,26 @@
|
|||
networking = {
|
||||
useNetworkd = true;
|
||||
firewall.allowedTCPPorts = [22 80 5900 5901 5902];
|
||||
interfaces.enp11s0.useDHCP = false;
|
||||
interfaces.br0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.50.12";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
interfaces = {
|
||||
enp11s0 = {
|
||||
useDHCP = false;
|
||||
wakeOnLan.enable = true ;
|
||||
br0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = globals.network.pennsardin.ip;
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
defaultGateway = {
|
||||
interface = "br0";
|
||||
address = "192.168.50.1";
|
||||
address = globals.network.gateway;
|
||||
};
|
||||
nameservers = ["192.168.50.1" "1.1.1.1"];
|
||||
nameservers = [ globals.network.gateway "1.1.1.1"];
|
||||
bridges.br0.interfaces = ["enp11s0"];
|
||||
};
|
||||
systemd.network = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue