add tor and sshd settings.
This commit is contained in:
parent
0eb6aeb456
commit
cd85cc0293
|
@ -12,6 +12,8 @@
|
||||||
profiles.sway
|
profiles.sway
|
||||||
profiles.dnscrypt
|
profiles.dnscrypt
|
||||||
profiles.gaming
|
profiles.gaming
|
||||||
|
# For sci-hub and whenever websites break
|
||||||
|
# profiles.tor
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -38,6 +40,8 @@
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
|
||||||
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
|
@ -50,11 +54,11 @@
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/disk/by-uuid/491ec94c-5e6a-4d23-a2a6-bcf4971a6e7b";
|
device = "/dev/disk/by-label/nixos";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/61F3-FD84";
|
device = "/dev/disk/by-label/nixboot";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
4
profiles/sshd/sshd.nix
Normal file
4
profiles/sshd/sshd.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{...}: {
|
||||||
|
services.openssh.enable = true;
|
||||||
|
services.openssh.permitRootLogin = "prohibit-password";
|
||||||
|
}
|
8
profiles/tor/tor.nix
Normal file
8
profiles/tor/tor.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }: {
|
||||||
|
services.tor = {
|
||||||
|
enable = true;
|
||||||
|
client.enable = true;
|
||||||
|
client.dns.enable = true;
|
||||||
|
torsocks.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue