nixos-config/hosts/phoenix/configuration.nix

64 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-04-08 21:28:07 +02:00
{
pkgs,
lib,
2024-08-10 19:23:59 +02:00
inputs,
2024-04-08 21:28:07 +02:00
...
2024-04-22 06:39:13 +02:00
}: let
2024-04-22 05:51:31 +02:00
sshKeys = import ../../crypto/ssh-keys.nix;
in {
2024-04-08 20:32:17 +02:00
imports = [
./hardware-configuration.nix
2024-04-22 20:48:35 +02:00
../../common/base.nix
2024-04-08 20:32:17 +02:00
../../common/locales/en.nix
../../common/locales/fr-keymap.nix
2024-04-22 06:39:13 +02:00
2024-04-22 05:51:31 +02:00
../../common/hardware/intel-cpu.nix
2024-04-17 22:28:27 +02:00
../../common/hardware/ssd.nix
2024-04-22 04:57:27 +02:00
../../common/hardware/btrfs.nix
2024-04-08 20:32:17 +02:00
2024-04-22 20:48:35 +02:00
../../common/services/syncthing.nix
2024-04-08 20:32:17 +02:00
2025-02-11 19:25:06 +01:00
../../home/tasia-but-old-username.nix
2024-08-10 19:23:59 +02:00
inputs.agenix.nixosModules.default
../../common/components/wifi-secrets.nix
2024-04-08 20:32:17 +02:00
];
networking = {
hostName = "phoenix";
2024-08-06 18:44:43 +02:00
firewall.allowedTCPPorts = [
8384 # syncthing web UI
# 12345 # tildefriends
# 13378 # audiobookshelf
];
firewall.allowedUDPPorts = [
12345 # tildefriends
];
2024-04-08 20:32:17 +02:00
};
2024-04-23 17:29:48 +02:00
users.users.user.openssh.authorizedKeys.keys = [
2025-01-24 11:31:28 +01:00
sshKeys.tasia.cave
2024-04-23 17:29:48 +02:00
];
2024-04-08 20:32:17 +02:00
2024-04-23 20:46:32 +02:00
services.btrfs.autoScrub.fileSystems = lib.mkForce ["/" "/data"];
2024-04-08 20:32:17 +02:00
2024-04-17 20:39:12 +02:00
# services.vedirect-reader.enable = true;
2024-04-08 20:32:17 +02:00
virtualisation.docker.enable = true;
2024-04-08 21:28:07 +02:00
services.syncthing = {
dataDir = lib.mkForce "/home/user";
configDir = lib.mkForce "/data/sync/configuration/";
2024-08-06 18:44:43 +02:00
guiAddress = "0.0.0.0:8384";
2024-04-08 21:28:07 +02:00
};
2024-04-08 20:32:17 +02:00
environment.systemPackages = with pkgs; [
2024-04-17 22:28:27 +02:00
#
2024-04-08 20:32:17 +02:00
];
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.05";
}