Compare commits

...

2 Commits

Author SHA1 Message Date
chn
a345125b7c system.networking: fix 2024-03-22 09:59:02 +08:00
chn
73c8197355 services.beesd: fix 2024-03-22 09:58:42 +08:00
2 changed files with 13 additions and 4 deletions

View File

@ -36,7 +36,12 @@ inputs:
{
spec = instance.value.device or instance.value;
hashTableSizeMB = instance.value.hashTableSizeMB or 1024;
extraOptions = [ "--thread-count" "${toString instance.value.threads or 1}" "--scan-mode" "3" ];
extraOptions =
[
"--workaround-btrfs-send"
"--thread-count" "${toString instance.value.threads or 1}"
"--scan-mode" "3"
];
};
})
(attrsToList beesd.instances));

View File

@ -68,7 +68,7 @@ inputs:
};
})
# networkd
(inputs.lib.mkIf networking.networkd != null
(inputs.lib.mkIf (networking.networkd != null)
{
systemd.network =
{
@ -102,12 +102,16 @@ inputs:
(inputs.localLib.attrsToList networking.networkd.static))
);
};
networking.networkmanager.unmanaged = with networking.networkd; dhcp ++ (builtins.attrNames static);
networking =
{
networkmanager.unmanaged = with networking.networkd; dhcp ++ (builtins.attrNames static);
useNetworkd = true;
};
})
# wpa_supplicant
(inputs.lib.mkIf (networking.wireless != [])
{
services.wpa_supplicant =
networking.wireless =
{
enable = true;
networks = builtins.listToAttrs (builtins.map