diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-12 18:40:38 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-12 18:40:38 +0100 |
commit | ae278d745dd8eca94374b27c1fa9a977e54c23c2 (patch) | |
tree | 934702c425a46496b046579b6f3f4bacada36e4a /system-profiles/networkmanager.nix | |
parent | 1f4ff029be789298f7732d6f2a153a234cbb5267 (diff) | |
download | nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar.gz nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar.bz2 nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar.xz nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.zip |
vidhar: netboot installer
Diffstat (limited to 'system-profiles/networkmanager.nix')
-rw-r--r-- | system-profiles/networkmanager.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/system-profiles/networkmanager.nix b/system-profiles/networkmanager.nix new file mode 100644 index 00000000..d1eb9cd1 --- /dev/null +++ b/system-profiles/networkmanager.nix | |||
@@ -0,0 +1,26 @@ | |||
1 | { lib, ... }: | ||
2 | |||
3 | with lib; | ||
4 | |||
5 | { | ||
6 | config = { | ||
7 | networking = { | ||
8 | networkmanager = { | ||
9 | enable = true; | ||
10 | dhcp = "internal"; | ||
11 | dns = mkForce "dnsmasq"; | ||
12 | extraConfig = '' | ||
13 | [connectivity] | ||
14 | uri=https://online.yggdrasil.li | ||
15 | ''; | ||
16 | }; | ||
17 | |||
18 | dhcpcd.enable = false; | ||
19 | }; | ||
20 | |||
21 | systemd.services."NetworkManager-wait-online".enable = false; | ||
22 | systemd.services."systemd-networkd-wait-online".enable = false; | ||
23 | |||
24 | services.resolved.enable = false; | ||
25 | }; | ||
26 | } | ||