{ inputs, username, nix-colors, config, pkgs, lib, ... }: let nvim-spell-pl-utf8-dict = builtins.fetchurl { url = "http://ftp.vim.org/vim/runtime/spell/pl.utf-8.spl"; sha256 = "1sg7hnjkvhilvh0sidjw5ciih0vdia9vas8vfrd9vxnk9ij51khl"; }; lux-scheme = builtins.fetchurl { url = "https://git.jptrzy.xyz/lux-theme/plain/lux-theme.yaml"; }; nix-colors-lib = nix-colors.lib.contrib { inherit pkgs; }; schemeFromYaml = import ./schemeFromYAML.nix; in { nix.settings = { trusted-substituters = ["https://cache.garnix.io"]; trusted-public-keys = ["cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="]; }; imports = [ nix-colors.homeManagerModules.default ./addons/firefox.nix #./addons/alacritty.nix #./addons/xresources.nix ./addons/sway.nix ]; colorScheme = schemeFromYaml "lux-scheme" (builtins.readFile lux-scheme); home.username = "${username}"; home.homeDirectory = "/home/${username}"; home.stateVersion = "22.05"; # Please read the comment before changing. # Allow Specific Unfree Packages nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ # Add additional package names here "pureref" "hplip" ]; home.packages = with pkgs; [ libnotify dmenu-bluetooth keepassxc hplipWithPlugin (import ./sh/screenshot.nix {inherit pkgs; }) (import ./sh/wp.nix {inherit pkgs; }) (import ./sh/colors.nix {inherit pkgs; }) (import ./sh/yt.nix {inherit pkgs; }) (import ./sh/mpv.nix {inherit pkgs; }) (import ./sh/fuzzel.nix {inherit pkgs; }) modrinth-app ]; nixpkgs.config.packageOverrides = pkgs: { nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; }; home.file = { ".config/nvim/spell/pl.utf-8.spl".source = nvim-spell-pl-utf8-dict; ".local/share/gnupg/gpg-agent.conf".text = '' debug-pinentry debug ipc verbose enable-ssh-support # disable-scdaemon #pinentry-program /run/current-system/sw/bin/pinentry pinentry-program /run/current-system/sw/bin/pinentry-gtk-2 ''; }; dconf = { enable = true; settings = { "org/gnome/desktop/interface" = { color-scheme = "prefer-dark"; }; }; }; gtk = { enable = true; font.name = "Neo Comic Mono 12"; #theme = { # name = "lux-scheme"; # package = nix-colors-lib.gtkThemeFromScheme { # scheme = config.colorScheme; # }; #}; #iconTheme = { # name = "Adwaita"; # package = pkgs.gnome.adwaita-icon-theme; #}; #cursorTheme = { # name = "Adwaita"; # package = pkgs.gnome.adwaita-icon-theme; #}; }; programs = { bash = { enable = true; shellAliases = { calculator = "${pkgs.bc}/bin/bc -l"; nr = "sudo nixos-rebuild switch"; hr = "home-manager switch"; se = "sudoedit"; trans = "${pkgs.sdcv}/bin/sdcv --color"; yta = "yt-dlp -x --audio-format vorbis"; reading = "curl 'http://feed.evangelizo.org/v2/reader.php?lang=PL&type=all' | sed 's#\W+##g;s#
##g;s###g;s###g'"; }; sessionVariables = { EDITOR = "nvim"; PATH = "$PATH:$HOME/.local/bin"; XDG_DATA_HOME = "$HOME/.local/share"; XDG_CONFIG_HOME = "$HOME/.config"; XDG_STATE_HOME = "$HOME/.local/state"; XDG_CACHE_HOME = "$HOME/.cache"; HISTFILE = "$HOME/.local/state/bash/history"; GNUPGHOME = "$HOME/.local/share/gnupg"; PASSWORD_STORE_DIR = "$HOME/.local/share/pass"; #QT_STYLE_OVERRIDE=adwaita #QT_QPA_PLATFORMTHEME=gnome }; }; git = { enable = true; userEmail = "jptrzy@gmail.com"; userName = "Jakub Trzeciak"; signing = { key = "FC040CC63D2527E3"; signByDefault = true; }; }; }; }