diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-04-29 23:34:40 +0200 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-04-29 23:34:40 +0200 |
| commit | 638ac9d6d2e6d05a4c6c973e3db235a952d92000 (patch) | |
| tree | f67579594a71a93065f4ecf827799aae41c97869 /hosts/threshold/default.nix | |
| parent | 0785f0c5d36e442a7d65a5e35378c09903d39211 (diff) | |
Threshold host and nix flake update.
Diffstat (limited to '')
| -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"; + }; + }; +} |
