add tor and sshd settings.

This commit is contained in:
ChaotiCryptidz 2021-12-26 16:09:16 +00:00
parent 0eb6aeb456
commit cd85cc0293
3 changed files with 18 additions and 2 deletions

View file

@ -12,6 +12,8 @@
profiles.sway
profiles.dnscrypt
profiles.gaming
# For sci-hub and whenever websites break
# profiles.tor
];
config = {
@ -38,6 +40,8 @@
time.timeZone = "Europe/London";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.fstrim.enable = true;
boot = {
loader = {
systemd-boot.enable = true;
@ -50,11 +54,11 @@
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/491ec94c-5e6a-4d23-a2a6-bcf4971a6e7b";
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/61F3-FD84";
device = "/dev/disk/by-label/nixboot";
fsType = "vfat";
};
};

4
profiles/sshd/sshd.nix Normal file
View file

@ -0,0 +1,4 @@
{...}: {
services.openssh.enable = true;
services.openssh.permitRootLogin = "prohibit-password";
}

8
profiles/tor/tor.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }: {
services.tor = {
enable = true;
client.enable = true;
client.dns.enable = true;
torsocks.enable = true;
};
}