nix-config/hosts/adalbert/default.nix

107 lines
3 KiB
Nix
Raw Permalink 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)
{
inputs,
outputs,
2024-11-03 16:22:02 +01:00
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
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;
permittedInsecurePackages = ["segger-jlink-qt4-794l"];
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-11-03 16:22:02 +01:00
services.udev.packages = [inputs.heliox-cli.packages.x86_64-linux.default pkgs.segger-jlink];
2024-02-04 20:53:09 +01:00
environment.systemPackages = [inputs.heliox-cli.packages.x86_64-linux.default];
2024-11-02 11:26:12 +01:00
# Personalausweis reader
programs.ausweisapp.enable = true;
programs.ausweisapp.openFirewall = true; # also sets firewall entry
2024-08-23 13:05:29 +02:00
programs.nix-ld.enable = true;
# services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.gdm.enable = true;
2024-05-24 14:04:03 +02:00
2023-12-24 11:16:59 +01:00
# Force disable Nvidia PRIME, needed by nix-hardware
# hardware.nvidia.prime.offload.enable = false;
2023-12-23 21:20:40 +01:00
2024-08-23 13:05:29 +02:00
programs.coolercontrol = {
2024-06-29 10:11:01 +02:00
enable = true;
2024-08-23 13:05:29 +02:00
nvidiaSupport = true;
2024-06-29 10:11:01 +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;
2023-12-23 21:20:40 +01:00
};
2023-12-24 11:16:59 +01:00
hardware = {
opengl.enable = true;
opentabletdriver.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
}