{ lib, pkgs, ... }: { imports = [ ./bootloader.nix ./filesystems.nix ./gpu.nix ./cpu.nix ./audio.nix ./bluetooth.nix ./networking.nix ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; time.timeZone = "Europe/Paris"; console = { keyMap = "us"; font = "ter-v28b"; # earlySetup = true; packages = [ pkgs.terminus_font ]; }; i18n.defaultLocale = "en_US.UTF-8"; nixpkgs.config.allowUnfree = true; nix.settings = { experimental-features = [ "nix-command" "flakes" ]; substituters = [ "https://cache.nixos-cuda.org" ]; trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ]; }; programs.niri.enable = true; # List packages installed in system profile. # You can use https://search.nixos.org/ to find more packages (and options). environment.systemPackages = with pkgs; [ wget sbctl alacritty fuzzel libva-utils firefox (openrgb.overrideAttrs (old: { src = pkgs.fetchFromGitLab { owner = "CalcProgrammer1"; repo = "OpenRGB"; rev = "release_candidate_1.0rc2"; sha256 = "vdIA9i1ewcrfX5U7FkcRR+ISdH5uRi9fz9YU5IkPKJQ="; }; patches = [ ./remove_systemd_service.patch ]; postPatch = '' patchShebangs scripts/build-udev-rules.sh substituteInPlace scripts/build-udev-rules.sh \ --replace-fail /usr/bin/env "${pkgs.coreutils}/bin/env" ''; version = "1.0rc2"; })) adwaita-icon-theme i2c-tools ]; fonts.fontconfig = { enable = true; antialias = true; hinting = { enable = true; style = "slight"; }; subpixel = { rgba = "rgb"; lcdfilter = "default"; }; defaultFonts = { serif = [ "SF Pro" "DejaVu Serif" ]; sansSerif = [ "SF Pro" "DejaVu Sans" ]; monospace = [ "Iosevka" "DejaVu Sans Mono" ]; emoji = [ "Noto Color Emoji" ]; }; }; fonts.packages = with pkgs; [ inputs.apple-fonts.packages."${system}".sf-pro noto-fonts-color-emoji (iosevka.override { set = "cavalier"; privateBuildPlan = { family = "Iosevka Cavalier"; spacing = "normal"; serifs = "sans"; noCvSs = false; exportGlyphNames = true; variants.inherits = "ss08"; variants.weights.Regular = { shape = 400; menu = 400; css = 400; }; variants.weights.Bold = { shape = 700; menu = 700; css = 700; }; variants.weights.Italic = { angle = 9.4; shape = "italic"; menu = "italic"; css = "italic"; }; variants.weights.Upright = { angle = 0; shape = "upright"; menu = "upright"; css = "upright"; }; }; }) ]; programs._1password.enable = true; programs._1password-gui = { enable = true; # Certain features, including CLI integration and system authentication support, # require enabling PolKit integration on some desktop environments (e.g. Plasma). polkitPolicyOwners = [ "pml" ]; }; #services.hardware.openrgb.enable = true; services.udev.packages = [ pkgs.openrgb ]; boot.kernelModules = [ "i2c-dev" ]; hardware.i2c.enable = true; environment.etc = { "1password/custom_allowed_browsers" = { text = '' firefox ''; mode = "0755"; }; }; system.stateVersion = "25.05"; # Did you read the comment? }