mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 03:18:45 +08:00
Compare commits
2 Commits
1a5b81a317
...
a345125b7c
Author | SHA1 | Date | |
---|---|---|---|
a345125b7c | |||
73c8197355 |
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user