nixos-config/hosts/yaseen/configuration.nix

95 lines
2.2 KiB
Nix
Raw Normal View History

2024-04-11 13:16:26 +02:00
{
pkgs,
lib,
2024-04-23 17:29:48 +02:00
inputs,
2024-04-11 13:16:26 +02:00
...
2024-04-22 05:51:31 +02:00
}: let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
2024-04-11 13:16:26 +02:00
imports = [
./hardware-configuration.nix
2024-04-22 20:48:35 +02:00
../../common/base.nix
2024-04-17 20:39:12 +02:00
../../common/full-install.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-22 06:39:13 +02:00
2024-04-22 05:51:31 +02:00
../../common/hardware/intel-cpu.nix
2024-04-22 21:24:54 +02:00
../../common/hardware/tpm2.nix
../../common/hardware/wireless.nix
2024-04-22 05:51:31 +02:00
../../common/hardware/nvidia-gpu.nix
../../common/hardware/nvidia-gpu-offload.nix
2024-04-17 22:28:27 +02:00
../../common/hardware/ssd.nix
2024-04-22 05:51:31 +02:00
../../common/hardware/btrfs.nix
../../common/hardware/latest-kernel.nix
2024-04-11 13:16:26 +02:00
2024-04-22 21:24:54 +02:00
../../common/components/de/sddm.nix
../../common/components/de/plasma6.nix
../../common/components/de/hyprland.nix
2024-04-11 13:16:26 +02:00
2024-04-22 20:48:35 +02:00
../../common/programs/steam.nix
2024-05-01 11:15:45 +02:00
../../common/services/auditd.nix
2024-05-17 16:07:34 +02:00
../../common/services/nix-gc.nix
2024-04-22 22:03:23 +02:00
../../common/services/adguardhome.nix
2024-04-22 20:48:35 +02:00
../../common/services/syncthing.nix
../../common/services/usbguard.nix
2024-04-18 21:10:13 +02:00
2024-04-22 06:39:13 +02:00
../../modules/nixos/vedirect-reader.nix
2024-04-23 17:29:48 +02:00
../../home/tasia/home.nix
2024-04-11 13:16:26 +02:00
];
networking = {
2024-04-29 14:31:33 +02:00
hostName = "yaseen";
2024-04-11 13:16:26 +02:00
2024-04-27 13:56:15 +02:00
# firewall.enable = lib.mkForce false;
2024-04-18 21:10:13 +02:00
firewall = {
allowedTCPPorts = [
8080 # ?
2024-04-27 13:56:15 +02:00
8008 # ssb
2024-04-18 21:10:13 +02:00
12345 # tildefriends
13378 # audiobookshelf
];
allowedUDPPorts = [
8080 # ?
];
};
2024-04-11 13:16:26 +02:00
};
2024-04-23 18:26:19 +02:00
# Nvidia GPU
2024-04-22 06:39:13 +02:00
hardware.nvidia.prime = {
intelBusId = "PCI:1:0:0";
nvidiaBusId = "PCI:0:2:0";
};
2024-04-23 17:29:48 +02:00
users.users.tasia.openssh.authorizedKeys.keys = [
2024-04-29 14:31:33 +02:00
sshKeys.tasia.yaseen
2024-04-23 17:29:48 +02:00
];
2024-04-11 13:16:26 +02:00
2024-04-18 21:10:13 +02:00
virtualisation.docker.enable = true;
# services.flatpak.enable = false;
2024-04-11 13:16:26 +02:00
2024-04-11 17:08:50 +02:00
services.syncthing = {
2024-04-22 06:39:13 +02:00
user = "tasia";
dataDir = lib.mkForce "/home/tasia/Sync/data";
configDir = lib.mkForce "/home/tasia/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-05-16 20:15:39 +02:00
services.flatpak.enable = true;
2024-04-11 13:16:26 +02:00
environment.systemPackages = with pkgs; [
2024-05-16 20:15:39 +02:00
# tildefriends
2024-04-23 18:26:19 +02:00
osu-lazer-bin
prismlauncher
2024-04-26 15:26:18 +02:00
# inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
# inputs.nix-software-center.packages.${system}.nix-software-center
2024-04-11 13:16:26 +02:00
];
2024-04-27 13:56:15 +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
}