nixos-config/hosts/yaseen/configuration.nix

103 lines
2.4 KiB
Nix

{
pkgs,
lib,
inputs,
config,
...
}: let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
imports = [
./hardware-configuration.nix
../../common/base.nix
../../common/full-install.nix
../../common/locales/en.nix
../../common/locales/fr-keymap.nix
../../common/hardware/intel-cpu.nix
../../common/hardware/tpm2.nix
../../common/hardware/wireless.nix
../../common/hardware/nvidia-gpu.nix
../../common/hardware/nvidia-gpu-offload.nix
../../common/hardware/ssd.nix
../../common/hardware/btrfs.nix
# ../../common/hardware/latest-kernel.nix
../../common/components/de/sddm.nix
../../common/components/de/plasma6.nix
# ../../common/components/de/hyprland.nix
../../common/programs/steam.nix
../../common/services/auditd.nix
../../common/services/nix-gc.nix
../../common/services/adguardhome.nix
../../common/services/syncthing.nix
../../common/services/usbguard.nix
../../common/services/autoupgrade.nix
../../home/tasia/home.nix
../../modules/nixos/tildefriends.nix
];
# RGB Keyboard backight
boot.extraModulePackages = with config.boot.kernelPackages; [hid-ite8291r3];
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="leds", DEVPATH=="*:kbd_backlight", TEST=="color", ATTR{color}="fc4f05"
'';
networking = {
hostName = "yaseen";
firewall = {
allowedTCPPorts = [
# 8080 # ?
8008 # ssb
12345 # tildefriends
13378 # audiobookshelf
];
allowedUDPPorts = [
8080 # ?
];
};
};
# Nvidia GPU
hardware.nvidia.prime = {
intelBusId = "PCI:1:0:0";
nvidiaBusId = "PCI:0:2:0";
};
users.users.tasia.openssh.authorizedKeys.keys = [
sshKeys.tasia.yaseen
];
virtualisation.docker.enable = true;
services.flatpak.enable = true;
services.syncthing = {
user = "tasia";
dataDir = lib.mkForce "/home/tasia/Sync/data";
configDir = lib.mkForce "/home/tasia/Sync/configuration";
};
# Needed to build enry
boot.binfmt.emulatedSystems = ["aarch64-linux"];
environment.systemPackages = with pkgs; [
inputs.tildefriends.packages.${system}.default
osu-lazer-bin
prismlauncher
# inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
# inputs.nix-software-center.packages.${system}.nix-software-center
];
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "23.11";
}