Skip to content

Commit

Permalink
hosts/enchilada: fix iproute2
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Aug 2, 2023
1 parent c5c6ebd commit b35f099
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions flake/hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
]);

network = with profiles; [
networking.networkd
networking.iproute2
networking.firewall
networking.avahi
networking.resolved
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/enchilada/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# TODO broken
# mobile.boot.stage-1.usb.features = ["rndis"];
# manual rndis setup
networking.useNetworkd = true;
systemd.services.setup-rndis = {
script = ''
cd /sys/kernel/config/usb_gadget/g1
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/fsn0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@

# networking
(lib.mkIf (!config.system.is-vm) {
networking.useNetworkd = true;
environment.etc."systemd/network/45-enp1s0.network".source =
config.sops.templates."enp1s0".path;
sops.templates."enp1s0" = {
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/hil0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ in {

# networking
(lib.mkIf (!config.system.is-vm) {
networking.useNetworkd = true;
environment.etc."systemd/network/45-enp1s0.network".source =
config.sops.templates."enp1s0".path;
sops.templates."enp1s0" = {
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/hkg0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ in {
}

(lib.mkIf (!config.system.is-vm) {
networking.useNetworkd = true;
systemd.network.networks."40-ens3" = {
matchConfig = {
Name = "ens3";
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/mia0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ in {

{
networking = lib.mkIf (!config.system.is-vm) {
useNetworkd = true;
interfaces.ens3.useDHCP = true;
};
}
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/mtl0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ in {
}

(lib.mkIf (!config.system.is-vm) {
networking.useNetworkd = true;
environment.etc."systemd/network/45-enX0.network".source =
config.sops.templates."enX0".path;
sops.secrets."network/address" = {
Expand Down
1 change: 0 additions & 1 deletion nixos/hosts/shg0/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ in {

{
networking = lib.mkIf (!config.system.is-vm) {
useNetworkd = true;
interfaces.ens5.useDHCP = true;
};
}
Expand Down
4 changes: 4 additions & 0 deletions nixos/profiles/networking/iproute2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ ... }:
{
networking.iproute2.enable = true;
}
4 changes: 4 additions & 0 deletions nixos/profiles/networking/networkd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ ... }:
{
networking.useNetworkd = true;
}

0 comments on commit b35f099

Please sign in to comment.