summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/networking.nix14
-rw-r--r--modules/scx.nix12
-rw-r--r--modules/tor.nix41
-rw-r--r--modules/virtualization.nix5
4 files changed, 39 insertions, 33 deletions
diff --git a/modules/networking.nix b/modules/networking.nix
index d4079f8..0b3cf91 100644
--- a/modules/networking.nix
+++ b/modules/networking.nix
@@ -1,6 +1,6 @@
{ ... }:
{
- # systemd.services."NetworkManager-wait-online".enable = false;
+ systemd.services."NetworkManager-wait-online".enable = false;
networking = {
hostName = "szpont";
@@ -12,14 +12,14 @@
firewall = {
enable = true;
- allowedTCPPorts = [ ];
- allowedUDPPorts = [ ];
+ allowedTCPPorts = [ 9150 ];
+ allowedUDPPorts = [ 9150 ];
};
nameservers = [ ];
};
- services.resolved = {
- enable = true;
- domains = [ "1.1.1.1" "8.8.8.8" ];
- };
+ # services.resolved = {
+ # enable = true;
+ # domains = [ "1.1.1.1" "8.8.8.8" ];
+ # };
}
diff --git a/modules/scx.nix b/modules/scx.nix
index b6af15c..0f777fe 100644
--- a/modules/scx.nix
+++ b/modules/scx.nix
@@ -2,11 +2,11 @@
{
services.scx = {
enable = true;
- scheduler = "scx_rusty";
- # extraArgs =[
- # ''
- # --performance
- # ''
- # ];
+ scheduler = "scx_lavd";
+ extraArgs =[
+ ''
+ --performance
+ ''
+ ];
};
}
diff --git a/modules/tor.nix b/modules/tor.nix
index 548da38..ad69f52 100644
--- a/modules/tor.nix
+++ b/modules/tor.nix
@@ -1,34 +1,41 @@
{ pkgs, ... }:
-
{
+ networking.proxy.default = "https://127.0.0.1:8118";
services = {
tor = {
enable = true;
-
- client = {
- enable = true;
- dns.enable = true;
- };
+ # openFirewall = true;
+ torsocks.enable = true;
+ # torsocks.allowInbound = true;
+ client.enable = true;
+ # client = {
+ # enable = true;
+ # dns.enable = true;
+ # };
- settings.DNSPort = [{
- addr = "127.0.0.1";
- port = 53;
- }];
+ # settings.DNSPort = [{
+ # addr = "127.0.0.1";
+ # port = 53;
+ # }];
- torsocks.enable = true;
+ # torsocks.enable = true;
+ };
+ privoxy = {
+ enable = true;
+ enableTor = true;
};
-
-# resolved = {
-# enable = true;
-# fallbackDns = [ "127.0.0.1:9053" ];
-# };
};
environment.systemPackages = with pkgs; [
tor
torsocks
tor-browser
+ torctl
+ vanguards
+ tractor
+ onioncircuits
+ oniux
];
- networking.nameservers = [ "127.0.0.1" ];
+ # networking.nameservers = [ "127.0.0.1" ];
}
diff --git a/modules/virtualization.nix b/modules/virtualization.nix
index eea29f4..0071f1a 100644
--- a/modules/virtualization.nix
+++ b/modules/virtualization.nix
@@ -10,15 +10,14 @@
};
docker = {
- enable = false;
+ enable = true;
extraPackages = with pkgs; [ docker-compose ];
};
-
containerd.enable = false;
};
programs.virt-manager.enable = true;
-# networking.firewall.allowedTCPPorts = [ 16509 ]; # NAT
+ networking.firewall.allowedTCPPorts = [ 5984 ];
users.users.adam.extraGroups = [ "libvirtd" "kvm" "docker" ];
}