diff --git a/hosts/lappy.nix b/hosts/lappy.nix index 8584b7d..726f23f 100644 --- a/hosts/lappy.nix +++ b/hosts/lappy.nix @@ -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"; }; }; diff --git a/profiles/sshd/sshd.nix b/profiles/sshd/sshd.nix new file mode 100644 index 0000000..a510d93 --- /dev/null +++ b/profiles/sshd/sshd.nix @@ -0,0 +1,4 @@ +{...}: { + services.openssh.enable = true; + services.openssh.permitRootLogin = "prohibit-password"; +} \ No newline at end of file diff --git a/profiles/tor/tor.nix b/profiles/tor/tor.nix new file mode 100644 index 0000000..2c7d576 --- /dev/null +++ b/profiles/tor/tor.nix @@ -0,0 +1,8 @@ +{ ... }: { + services.tor = { + enable = true; + client.enable = true; + client.dns.enable = true; + torsocks.enable = true; + }; +}