disable avahi, add nat for virt

This commit is contained in:
Dmitriy Kholkin 2021-09-15 18:37:21 +03:00
parent 09d32772f9
commit c4ad40b1e3
4 changed files with 14 additions and 20 deletions

View File

@ -8,15 +8,10 @@
trustedUsers = [ "root" "alukard" "@wheel" ]; trustedUsers = [ "root" "alukard" "@wheel" ];
# nrBuildUsers = 16;
# optimise.automatic = lib.mkIf (config.device != "Dell-Laptop") true;
optimise.automatic = true; optimise.automatic = true;
# autoOptimiseStore = config.deviceSpecific.isSSD;
autoOptimiseStore = false; autoOptimiseStore = false;
# package = pkgs.nixFlakes;
package = inputs.nix.packages.x86_64-linux.nix; package = inputs.nix.packages.x86_64-linux.nix;
extraOptions = '' extraOptions = ''

View File

@ -40,12 +40,6 @@ in
wine = super.wineWowPackages.staging; wine = super.wineWowPackages.staging;
qbittorrent = super.qbittorrent.overrideAttrs (stable: rec { qbittorrent = super.qbittorrent.overrideAttrs (stable: rec {
version = "enchanced-edition"; version = "enchanced-edition";
# src = super.fetchFromGitHub {
# owner = "c0re100";
# repo = "qBittorrent-Enhanced-Edition";
# rev = "release-${version}";
# sha256 = "1pfwg95vi1yig36qkganhqw1rz28qfzlfpixnbb3hibvzsjl2p8m";
# };
src = inputs.qbittorrent-ee; src = inputs.qbittorrent-ee;
}); });
rust-stable = pkgs.latest.rustChannels.stable.rust.override { rust-stable = pkgs.latest.rustChannels.stable.rust.override {

View File

@ -35,15 +35,15 @@ with config.deviceSpecific; {
services.udev.packages = [ pkgs.stlink ]; services.udev.packages = [ pkgs.stlink ];
services.avahi = { # services.avahi = {
enable = true; # enable = true;
nssmdns = true; # nssmdns = true;
publish = { # publish = {
enable = true; # enable = true;
addresses = true; # addresses = true;
domain = true; # domain = true;
}; # };
}; # };
systemd.services.systemd-udev-settle.enable = false; systemd.services.systemd-udev-settle.enable = false;

View File

@ -12,4 +12,9 @@
}; };
virtualisation.spiceUSBRedirection.enable = config.deviceSpecific.enableVirtualisation; virtualisation.spiceUSBRedirection.enable = config.deviceSpecific.enableVirtualisation;
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
};
} }