{ config, inputs, pkgs, ... }: { nixpkgs.config = { permittedInsecurePackages = [ "python-2.7.18.6" "electron-24.8.6" "electron-25.9.0" ]; allowUnfree = true; }; boot = { kernelPackages = pkgs.linuxPackages_xanmod_latest; # extraModulePackages = with config.boot.kernelPackages; [ ddcci-driver ]; # kernelModules = [ "ddcci" ]; kernelParams = [ "video=eDP-1:2560x1440@165" "video=HDMI-A-1:2560x1440@144" ]; }; nix = { settings = { max-jobs = 3; cores = 4; substituters = [ "https://nix-community.cachix.org" "https://nixpkgs-wayland.cachix.org" "https://viperml.cachix.org" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=" "viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8=" ]; }; }; programs.dconf.enable = true; security.sudo.package = pkgs.sudo.override { withInsults = true; }; security.polkit.enable = true; environment.sessionVariables = { CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium"; }; services = { pcscd.enable = true; udisks2.enable = true; dbus.enable = true; fwupd = { enable = true; }; ratbagd.enable = true; }; services.journald = { extraConfig = '' SystemMaxUse=100M ''; }; services.udev = { packages = with pkgs; [ yubikey-personalization ]; }; # this makes usb devices autosuspend #powerManagement.powertop.enable = true; programs.kdeconnect.enable = true; programs.noisetorch.enable = true; myOptions = { other.home-manager = { enable = true; enableDirenv = true; }; programs = { git = { enable = true; userName = "jacekpoz"; userEmail = "jacekpoz@proton.me"; signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXD1EM4mQz99vJhmZX1r7kwMd8yewogOuoTUuv1xWZB"; defaultBranch = "master"; }; starship.enable = true; zsh = { enable = true; extraAliases = { #u = "nh os switch \"/home/jacek/niksos\" -H niks -- --use-remote-sudo"; #us = "NIX_SSHOPTS='-t' nh os switch \"/home/jacek/niksos\" -H chmura -- --use-remote-sudo --target-host chmura"; u = "nixos-rebuild switch --flake \"/home/jacek/niksos#niks\" -L --use-remote-sudo"; us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura"; }; profiling = false; }; zoxide.enable = true; anyrun.enable = true; vesktop.enable = true; btop.enable = true; firefox = { enable = true; defaultSearchEngine = "NotASearx"; searchEngines = { "NotASearx" = { url = "https://search.notashelf.dev/search?q={searchTerms}"; faviconUrl = "https://search.notashelf.dev/favicon.ico"; aliases = [ "!sx" ]; }; "NixOS Packages" = { url = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}"; faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; aliases = [ "!np" ]; }; "NixOS Options" = { url = "https://search.nixos.org/options?channel=unstable&query={searchTerms}"; faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; aliases = [ "!no" ]; }; "NixOS Wiki" = { url = "https://nixos.wiki/index.php?search={searchTerms}"; faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; aliases = [ "!nw" ]; }; "Home Manger Option Search" = { url = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}"; faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; aliases = [ "!hm" ]; }; "Arch Wiki" = { url = "https://wiki.archlinux.org/index.php?search={searchTerms}"; faviconUrl = "https://archlinux.org/favicon.ico"; aliases = [ "!aw" ]; }; "Gentoo Wiki" = { url = "https://wiki.gentoo.org/index.php?search={searchTerms}"; faviconUrl = "https://www.gentoo.org/favicon.ico"; aliases = [ "!gw" ]; }; "Debian Wiki" = { url = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}"; faviconUrl = "https://www.debian.org/favicon.ico"; aliases = [ "!dw" ]; }; }; }; foot.enable = true; mpv.enable = true; neovim.enable = true; zathura.enable = true; hypr = { land = { enable = true; startupSound = ./mathis.m4a; extraPlugins = [ inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces ]; extraSettings = { exec = let inherit (inputs.nixpkgs-wayland.packages.${pkgs.system}) swww; in [ # wait a bit then set the wallpapers "sleep 0.5 && ${swww}/bin/swww img -o eDP-1 ${./catppuccin-wall0.png}" "sleep 0.5 && ${swww}/bin/swww img -o HDMI-A-1 ${./catppuccin-wall1.png}" ]; }; }; lock.enable = true; }; helix.enable = true; newsboat.enable = true; }; themes = { cursor = { enable = true; package = pkgs.bibata-cursors; name = "Bibata-Modern-Classic"; size = 24; }; gtk = { enable = true; package = pkgs.catppuccin-gtk; name = "Catppuccin-Mocha-Standard-Green-Dark"; variant = "mocha"; accentColour = "green"; iconTheme = { name = "Papirus-Dark"; package = pkgs.catppuccin-papirus-folders; }; }; qt = { enable = true; package = pkgs.catppuccin-kde; name = "Catppuccin-Mocha-Dark"; variant = "mocha"; accentColour = "green"; }; }; services = { dunst.enable = true; mpd = { enable = true; musicDirectory = "/run/media/data/Music"; }; greetd = { enable = true; greeter = "gtkgreet"; launchOptions = [ "Hyprland" "sway" "zsh" "reboot" "shutdown now" ]; }; pipewire.enable = true; syncthing.enable = true; }; }; system.stateVersion = "23.11"; }