{ config, self, lib, pkgs, profiles, inputs, ... }: let inherit (lib) flatten optional mkIf; ifGraphical = lib.optionals config.info.graphical; ifGraphical' = lib.optional config.info.graphical; in { imports = flatten [ ]; home = { config, main, profiles, ... }: { imports = flatten [ (ifGraphical' (with profiles; [ rofi themeing flameshot ])) ./config ]; programs = { git = { userEmail = "infinidoge@inx.moe"; userName = "Infinidoge"; }; firefox = { enable = main.info.graphical; package = pkgs.firefox-devedition; }; }; home.packages = with pkgs; flatten [ ncdu keepassxc unbted packwiz toot (ifGraphical [ speedcrunch libreoffice-fresh krita (discord-canary.override { withVencord = true; }) schildichat-desktop (optional main.modules.hardware.form.desktop qbittorrent) ]) arduino ]; }; environment.variables.EDITOR = let pkg = config.home-manager.users.infinidoge.programs.emacs.package; editorScript = pkgs.writeScriptBin "emacseditor" '' #!${pkgs.runtimeShell} exec ${pkg}/bin/emacsclient --create-frame "$@" ''; in (lib.mkForce "${editorScript}/bin/emacseditor"); modules = { locale.fonts = { fonts = with pkgs; [ (nerdfonts.override { fonts = config.modules.locale.fonts.defaults.monospace; }) dejavu_fonts emacs-all-the-icons-fonts ]; defaults = { monospace = [ "DejaVuSansMono" ]; }; }; desktop.wm.qtile.enable = true; software.minipro.enable = true; }; programs = { adb.enable = config.info.graphical; }; user = { name = "infinidoge"; uid = 1000; passwordFile = mkIf config.modules.secrets.enable config.secrets.infinidoge-password; description = "Infinidoge, primary user of the system"; group = "users"; isNormalUser = true; extraGroups = [ "adbusers" "bluetooth" "dialout" "disk" "docker" "libvirtd" "minecraft" "plugdev" "video" "wheel" ]; shell = pkgs.zsh; openssh.authorizedKeys.keys = import ./ssh-keys.nix; }; }