nixos-config/hosts/vulpecula/configuration.nix

97 lines
2 KiB
Nix
Raw Normal View History

{
config,
lib,
inputs,
...
}: let
2024-10-03 12:40:37 +02:00
sshKeys = import ../../crypto/ssh-keys.nix;
in {
2024-09-29 19:41:01 +02:00
imports = [
./hardware-configuration.nix
2024-10-03 11:47:42 +02:00
../../common/base.nix
./forgejo.nix
2024-10-03 21:49:49 +02:00
# ./grafana.nix
2024-10-03 21:37:14 +02:00
./tasiaiso.nix
2024-09-05 20:49:12 +02:00
];
2024-10-03 12:21:57 +02:00
networking = {
hostName = "vulpecula";
firewall = {
allowedTCPPorts = [
80
443
2024-10-05 10:03:33 +02:00
22
2024-10-03 12:21:57 +02:00
];
allowedUDPPorts = [
# 8080 # ?
];
};
};
# Disable systemd-boot, use grub instead
2024-10-03 12:12:35 +02:00
boot = {
2024-10-03 12:14:24 +02:00
loader.systemd-boot.enable = lib.mkForce false;
2024-10-03 12:12:35 +02:00
initrd = {
2024-10-03 12:15:02 +02:00
enable = lib.mkForce true;
2024-10-03 12:14:24 +02:00
systemd.enable = lib.mkForce false;
2024-10-03 12:12:35 +02:00
};
};
users.users.tasia = {
2024-10-03 12:39:52 +02:00
isNormalUser = true;
description = "Tasia";
2024-10-05 11:38:36 +02:00
extraGroups = ["networkmanager" "wheel"];
2024-10-03 12:39:52 +02:00
initialPassword = "correcthorsebatterystaple";
openssh.authorizedKeys.keys = [
sshKeys.tasia.yaseen
2024-10-05 09:59:58 +02:00
sshKeys.tasia.yubi-primary
sshKeys.tasia.yubi-spare
2024-10-03 12:39:52 +02:00
];
};
2024-10-05 10:25:38 +02:00
users.users.vulpecula = {
isNormalUser = true;
2024-10-05 11:38:36 +02:00
description = "test acc";
extraGroups = ["networkmanager" "wheel"];
2024-10-05 10:25:38 +02:00
initialPassword = "correcthorsebatterystaple";
openssh.authorizedKeys.keys = [
sshKeys.tasia.yubi-primary
sshKeys.tasia.yubi-spare
];
};
2024-10-05 11:38:36 +02:00
users.users.dedsec = {
isNormalUser = true;
description = "dedsec";
extraGroups = ["networkmanager" "wheel"];
initialPassword = "correcthorsebatterystaple";
openssh.authorizedKeys.keys = [
];
};
2024-10-03 13:11:58 +02:00
services.nginx = {
enable = true;
2024-10-03 13:52:46 +02:00
recommendedProxySettings = true;
recommendedTlsSettings = true;
2024-10-03 13:11:58 +02:00
virtualHosts."vulpecula.zone" = {
addSSL = true;
enableACME = true;
2024-10-03 14:53:38 +02:00
root = inputs.vulpecula-zone.packages.x86_64-linux.default;
2024-10-03 14:51:45 +02:00
};
2024-10-03 12:49:42 +02:00
};
# change when ppl can make their own website
2024-10-03 13:05:05 +02:00
security.acme = {
acceptTerms = true;
defaults.email = "tasiaiso@proton.me";
};
2024-09-29 19:41:01 +02:00
boot.tmp.cleanOnBoot = true;
2024-10-05 10:25:38 +02:00
# zramSwap.enable = true;
# networking.domain = "";
2024-10-05 09:59:58 +02:00
2024-09-05 20:49:12 +02:00
system.stateVersion = "24.05";
}