diff options
Diffstat (limited to 'hosts/threshold/default.nix')
| -rw-r--r-- | hosts/threshold/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/hosts/threshold/default.nix b/hosts/threshold/default.nix new file mode 100644 index 0000000..485997b --- /dev/null +++ b/hosts/threshold/default.nix @@ -0,0 +1,50 @@ +{ + lib, + ... +}: +{ + + imports = [ + ./network.nix + ./disko.nix + ./hardware.nix + ]; + addons = { + desktop.xfce.enable = lib.mkForce true; + gpg.enable = true; + virtualisation.host = true; + }; + + # Bootloader and boot setup. + boot.loader.efi.canTouchEfiVariables = lib.mkDefault true; + + boot.loader.grub = { + enable = true; + useOSProber = false; + device = "nodev"; + efiSupport = true; + default = "saved"; + memtest86.enable = true; + }; + + # Networking setup + networking.hostName = "threshold"; + services.resolved = { + enable = true; + settings.Resolve.DNSOverTLS = "opportunistic"; + }; + + # SSH Access + services.openssh = { + enable = true; + ports = [ 22 ]; + openFirewall = true; + allowSFTP = true; + settings = { + PasswordAuthentication = false; + AllowUsers = [ "wilkuu" ]; + X11Forwarding = true; + PermitRootLogin = "no"; + }; + }; +} |
