nix-config/hosts/adalbert/default.nix

112 lines
3.2 KiB
Nix
Raw Normal View History

2023-12-23 21:20:40 +01:00
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
2024-12-08 17:32:41 +01:00
{ inputs
, outputs
, pkgs
, ...
2023-12-23 21:20:40 +01:00
}: {
# You can import other NixOS modules here
imports = [
# If you want to use modules your own flake exports (from modules/nixos):
# outputs.nixosModules.example
# Or modules from other flakes (such as nixos-hardware):
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
# You can also split up your configuration and import pieces of it here:
# ./users.nix
# Import your generated (nixos-generate-config) hardware configuration
./hardware-configuration.nix
2023-12-24 11:16:59 +01:00
../common/global
../common/optional/desktop/awesome.nix
../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 = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
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;
};
# 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 = {
opengl.enable = true;
opentabletdriver.enable = true;
2024-12-08 17:32:41 +01:00
nvidia = {
open = false;
powerManagement.enable = true;
# modesetting.enable = true;
};
2023-12-23 21:20:40 +01:00
};
2024-12-08 17:32:41 +01:00
# boot.extraModprobeConfig = ''
# options nvidia NVreg_PreserveVideoMemoryAllocations=1
# '';
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
}