aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/networking/static.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/nixos/networking/static.nix')
-rw-r--r--modules/services/nixos/networking/static.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/modules/services/nixos/networking/static.nix b/modules/services/nixos/networking/static.nix
deleted file mode 100644
index 9338a6a..0000000
--- a/modules/services/nixos/networking/static.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- lib,
- config,
- ...
-}: let
- cfg = config.collinux.services.networking.static;
-in
- lib.mkIf cfg.enable {
- networking = {
- wireless = {
- enable = true;
- networks.${cfg.ssid}.pskRaw = "ext:psk";
- secretsFile = config.age.secrets.${cfg.pskFile}.path;
- };
-
- # Disable default networking stuff
- dhcpcd.enable = false;
- useDHCP = false;
- networkmanager.enable = false;
- };
-
- systemd.network = {
- enable = true;
- networks."10-static-lan" = {
- name = "wl*";
-
- networkConfig = {
- Address = "${cfg.ip}/24";
- Gateway = cfg.gateway;
- DNS = "1.1.1.1";
- DHCP = "no";
-
- # diable ipv6 addresses
- IPv6AcceptRA = "no";
- IPv6PrivacyExtensions = "no";
- LinkLocalAddressing = "no";
- };
- };
- };
- }