summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces-systemd.nix
diff options
context:
space:
mode:
authorAlexandru Scvortov <code@scvalex.net>2022-06-02 19:16:25 +0100
committerAlexandru Scvortov <code@scvalex.net>2022-06-02 19:16:25 +0100
commit3a09010b9d5d7dac68bfca200a9447e1eb77f3eb (patch)
tree85e73e397d8c92e77232c24eee5a2e9a81ee58b8 /nixos/modules/tasks/network-interfaces-systemd.nix
parent42cfcd1d78b0139a46396010ebf81dd38e6f76be (diff)
downloadnixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.tar
nixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.tar.gz
nixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.tar.bz2
nixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.tar.lz
nixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.tar.xz
nixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.tar.zst
nixpkgs-3a09010b9d5d7dac68bfca200a9447e1eb77f3eb.zip
nixos/network-interfaces: add networking.interfaces.<name>.ipv[46].routes.type
Diffstat (limited to 'nixos/modules/tasks/network-interfaces-systemd.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces-systemd.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/tasks/network-interfaces-systemd.nix b/nixos/modules/tasks/network-interfaces-systemd.nix
index 110e84494a3..80808e0c08f 100644
--- a/nixos/modules/tasks/network-interfaces-systemd.nix
+++ b/nixos/modules/tasks/network-interfaces-systemd.nix
@@ -142,6 +142,9 @@ in
                 optionalAttrs (route.via != null) {
                   Gateway = route.via;
                 } //
+                optionalAttrs (route.type != null) {
+                  Type = route.type;
+                } //
                 optionalAttrs (route.options ? onlink) {
                   GatewayOnLink = true;
                 } //