nix-config/hosts/adalbert/default.nix

85 lines
2.1 KiB
Nix
Raw Normal View History

2024-12-08 17:32:41 +01:00
{ inputs
, outputs
, pkgs
, ...
2023-12-23 21:20:40 +01:00
}: {
imports = [
inputs.hardware.nixosModules.common-cpu-amd-pstate
inputs.hardware.nixosModules.common-gpu-nvidia-nonprime
2023-12-24 11:16:59 +01:00
inputs.hardware.nixosModules.common-pc-ssd
2023-12-23 21:20:40 +01:00
./hardware-configuration.nix
2023-12-24 11:16:59 +01:00
../common/global
../common/optional/desktop/awesome.nix
2024-12-08 17:32:47 +01:00
../common/optional/desktop/hyprland.nix
2023-12-24 11:16:59 +01:00
../common/optional/systemd-boot.nix
../common/optional/wireshark.nix
../common/optional/kde-connect.nix
2023-12-25 23:12:37 +01:00
../common/optional/gnome-keyring.nix
2023-12-26 13:59:40 +01:00
../common/optional/adb.nix
2024-01-07 15:42:16 +01:00
../common/optional/docker.nix
2023-12-26 22:15:20 +01:00
../common/optional/gaming/gamemode.nix
2023-12-27 22:50:11 +01:00
../common/optional/gaming/steam.nix
../common/optional/desktop/japanese.nix
2024-01-07 15:41:41 +01:00
../common/optional/udisks.nix
2024-12-08 17:32:41 +01:00
../common/optional/fhs-compat.nix
../common/optional/stylix.nix
2023-12-23 21:20:40 +01:00
];
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
2024-12-13 20:37:56 +01:00
2023-12-23 21:20:40 +01:00
config = {
allowUnfree = true;
2023-12-26 23:25:22 +01:00
firefox.enablePlasmaBrowserIntegration = true;
2024-11-03 16:22:02 +01:00
segger-jlink.acceptLicense = true;
2024-12-08 17:32:41 +01:00
permittedInsecurePackages = [ "segger-jlink-qt4-796s" "dotnet-runtime-6.0.36" "dotnet-sdk-wrapped-6.0.428" "dotnet-sdk-6.0.428" ];
2023-12-23 21:20:40 +01:00
};
};
2023-12-23 22:05:10 +01:00
networking.hostName = "adalbert";
2023-12-23 21:20:40 +01:00
2024-12-08 17:32:41 +01:00
services.udev.packages = [ inputs.heliox-cli.packages.x86_64-linux.default pkgs.segger-jlink ];
environment.systemPackages = [ inputs.heliox-cli.packages.x86_64-linux.default ];
2024-02-04 20:53:09 +01:00
services.xserver.displayManager.gdm.enable = true;
2024-05-24 14:04:03 +02:00
2024-05-30 23:47:03 +02:00
boot.binfmt.emulatedSystems = [
"aarch64-linux"
2024-06-02 11:10:44 +02:00
"riscv64-linux"
2024-05-30 23:47:03 +02:00
];
2023-12-24 11:16:59 +01:00
programs = {
adb.enable = true;
dconf.enable = true;
2024-12-08 17:32:41 +01:00
coolercontrol = {
enable = true;
nvidiaSupport = true;
};
2024-12-13 20:37:56 +01:00
2024-12-08 17:32:41 +01:00
# Personalausweis reader
ausweisapp = {
enable = true;
openFirewall = true; # also sets firewall entry
};
2023-12-23 21:20:40 +01:00
};
2023-12-24 11:16:59 +01:00
hardware = {
2024-12-13 20:37:56 +01:00
graphics.enable = true;
2023-12-24 11:16:59 +01:00
opentabletdriver.enable = true;
2024-12-08 17:32:41 +01:00
nvidia = {
open = false;
powerManagement.enable = true;
};
2023-12-23 21:20:40 +01:00
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
2023-12-23 22:05:10 +01:00
system.stateVersion = "23.11";
2023-12-23 21:20:40 +01:00
}