2024-04-13 12:30:26 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-06-01 13:17:17 +02:00
|
|
|
inputs,
|
2024-04-13 12:30:26 +02:00
|
|
|
...
|
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-06-01 00:29:03 +02:00
|
|
|
../../common/components/enry.nix
|
2024-06-01 13:17:17 +02:00
|
|
|
|
2024-08-10 19:23:59 +02:00
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
../../common/components/wifi-secrets.nix
|
|
|
|
|
2024-06-04 19:13:16 +02:00
|
|
|
inputs.vedirect-reader.nixosModules.aarch64-linux.default
|
2024-04-13 12:30:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "enry";
|
2024-06-01 00:29:03 +02:00
|
|
|
|
|
|
|
firewall = {
|
|
|
|
allowedTCPPorts = [
|
|
|
|
2342
|
|
|
|
8080 # ?
|
2024-06-06 15:50:43 +02:00
|
|
|
9000
|
2024-06-01 00:29:03 +02:00
|
|
|
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 = [
|
2025-01-24 11:31:28 +01:00
|
|
|
sshKeys.tasia.cave
|
2024-04-13 12:30:26 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-06-01 00:29:03 +02:00
|
|
|
nodejs
|
2024-06-07 14:57:57 +02:00
|
|
|
inputs.vedirect-reader.packages.aarch64-linux.default
|
2024-04-13 12:30:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|