2024-04-13 12:30:26 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-04-22 05:51:31 +02:00
|
|
|
}: let
|
|
|
|
sshKeys = import ../../crypto/ssh-keys.nix;
|
|
|
|
in {
|
2024-04-13 12:30:26 +02:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2024-04-22 20:48:35 +02:00
|
|
|
../../common/base.nix
|
2024-04-13 12:30:26 +02:00
|
|
|
|
2024-04-22 06:39:13 +02:00
|
|
|
../../common/hardware/raspberry-pi.nix
|
2024-04-22 04:57:27 +02:00
|
|
|
|
2024-04-17 20:39:12 +02:00
|
|
|
../../modules/nixos/vedirect-reader.nix
|
2024-06-01 00:29:03 +02:00
|
|
|
|
|
|
|
../../common/components/enry.nix
|
2024-04-13 12:30:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "enry";
|
2024-06-01 00:29:03 +02:00
|
|
|
|
|
|
|
firewall = {
|
|
|
|
allowedTCPPorts = [
|
|
|
|
2342
|
|
|
|
8080 # ?
|
|
|
|
9000
|
|
|
|
9002
|
|
|
|
];
|
|
|
|
};
|
2024-04-13 12:30:26 +02:00
|
|
|
};
|
|
|
|
|
2024-06-01 00:29:03 +02:00
|
|
|
nix.settings.trusted-users = ["root" "@wheel"]; # TODO
|
2024-05-30 19:50:22 +02:00
|
|
|
|
|
|
|
users.users.tasia = {
|
2024-04-13 12:30:26 +02:00
|
|
|
isNormalUser = true;
|
2024-05-30 19:50:22 +02:00
|
|
|
description = "Tasia";
|
2024-04-17 20:39:12 +02:00
|
|
|
extraGroups = ["networkmanager" "wheel" "dialout"];
|
2024-04-13 12:30:26 +02:00
|
|
|
initialPassword = "correcthorsebatterystaple";
|
|
|
|
openssh.authorizedKeys.keys = [
|
2024-04-29 14:31:33 +02:00
|
|
|
sshKeys.tasia.yaseen
|
2024-04-13 12:30:26 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-06-01 00:29:03 +02:00
|
|
|
nodejs
|
|
|
|
vedirect-reader
|
2024-04-13 12:30:26 +02:00
|
|
|
];
|
|
|
|
|
2024-06-01 00:29:03 +02:00
|
|
|
services.prometheus.enable = true;
|
|
|
|
services.vedirect-reader.enable = true;
|
2024-04-22 04:57:27 +02:00
|
|
|
|
2024-04-13 12:30:26 +02:00
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|