summaryrefslogtreecommitdiff
path: root/hosts/tacitus/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/tacitus/default.nix')
-rw-r--r--hosts/tacitus/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/hosts/tacitus/default.nix b/hosts/tacitus/default.nix
new file mode 100644
index 0000000..1efc539
--- /dev/null
+++ b/hosts/tacitus/default.nix
@@ -0,0 +1,53 @@
+{
+ 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.limine = {
+ efiSupport = true;
+ enable = true;
+ secureBoot = {
+ enable = true;
+ autoGenerateKeys = true;
+ autoEnrollKeys = {
+ extraArgs = [
+ "--microsoft"
+ "--firmware-builtin"
+ ];
+ };
+ };
+ };
+ # Networking setup
+ networking.hostName = "tacitus";
+ 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";
+ };
+ };
+}