nixos-config/hosts/new-new-phoenix/configuration.nix

99 lines
2.3 KiB
Nix
Raw Normal View History

2024-04-11 13:16:26 +02:00
{
pkgs,
lib,
...
}: {
imports = [
./hardware-configuration.nix
../../common/default.nix
2024-04-17 20:39:12 +02:00
../../common/full-install.nix
../../common/allow-unfree.nix
2024-04-11 13:16:26 +02:00
../../common/locales/en.nix
2024-04-18 21:10:13 +02:00
../../common/locales/fr-keymap.nix
2024-04-11 13:16:26 +02:00
../../common/hardware/intelcpu.nix
2024-04-18 21:10:13 +02:00
../../common/hardware/amdgpu.nix
2024-04-17 22:28:27 +02:00
../../common/hardware/ssd.nix
2024-04-11 13:16:26 +02:00
../../common/de/plasma6.nix
2024-04-18 21:10:13 +02:00
# ../../common/de/hyprland.nix
2024-04-11 13:16:26 +02:00
2024-04-18 21:10:13 +02:00
# ../../common/packages/syncthing.nix
2024-04-11 17:08:50 +02:00
../../common/packages/adguardhome.nix
2024-04-17 22:28:27 +02:00
../../common/tasia-packages.nix
2024-04-18 21:10:13 +02:00
# ../../modules/nixos/vedirect-reader.nix
2024-04-11 13:16:26 +02:00
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
# boot.kernelModules = [ "fuse" "kvm-intel" "coretemp" ];
};
networking = {
2024-04-18 21:10:13 +02:00
hostName = "new-new-phoenix";
2024-04-11 13:16:26 +02:00
2024-04-18 21:10:13 +02:00
firewall = {
enable = true;
allowedTCPPorts = [
8080 # ?
12345 # tildefriends
13378 # audiobookshelf
];
allowedUDPPorts = [
8080 # ?
];
};
2024-04-11 13:16:26 +02:00
};
2024-04-18 21:10:13 +02:00
users.users.tasia = {
2024-04-11 13:16:26 +02:00
isNormalUser = true;
description = "User";
2024-04-17 20:39:12 +02:00
extraGroups = ["networkmanager" "wheel" "syncthing"];
2024-04-11 13:16:26 +02:00
initialPassword = "correcthorsebatterystaple";
openssh.authorizedKeys.keys = [
# TODO: Add your SSH public key(s) here, if you plan on using SSH to connect
];
};
2024-04-11 17:08:50 +02:00
services.btrfs.autoScrub = {
enable = true;
interval = "weekly";
fileSystems = ["/"];
};
2024-04-11 13:16:26 +02:00
2024-04-18 21:10:13 +02:00
# services.vedirect-reader.enable = true;
virtualisation.docker.enable = true;
# services.flatpak.enable = false;
2024-04-11 13:16:26 +02:00
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = false; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = false; # Open ports in the firewall for Source Dedicated Server
};
2024-04-11 17:08:50 +02:00
services.syncthing = {
2024-04-18 21:10:13 +02:00
dataDir = lib.mkForce "/home/user";
configDir = lib.mkForce "/data/sync/configuration/";
2024-04-11 17:08:50 +02:00
};
2024-04-11 13:16:26 +02:00
2024-04-18 21:10:13 +02:00
# Needed to build enry
boot.binfmt.emulatedSystems = ["aarch64-linux"];
2024-04-11 13:16:26 +02:00
environment.systemPackages = with pkgs; [
2024-04-17 22:28:27 +02:00
#
2024-04-11 13:16:26 +02:00
];
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
2024-04-18 21:10:13 +02:00
system.stateVersion = "23.11";
2024-04-11 13:16:26 +02:00
}