{ pkgs, lib, inputs, namespace, ... }: let inherit (lib.${namespace}) enabled; in { # steam-rom-manager is also injected globally via modules/nixos/home/default.nix # sharedModules for x86_64 NixOS builds. This explicit import ensures it is # also available for standalone `home-manager switch` runs (where sharedModules # are not applied). NixOS's module system deduplicates the import when both # paths resolve to the same derivation. imports = [ inputs.steam-rom-manager.homeManagerModules.default ]; home = { username = "admin"; packages = with pkgs; [ heroic python3 python3Packages.requests python3Packages.mcp jq ] ++ (with pkgs.${namespace}; [ hueforge moondeck-buddy ]); }; ${namespace} = { sops.enable = true; programs.opencode = enabled; desktop.plasma = enabled; }; sops.secrets = { "ssh-keys-public/jallen-nas" = { path = "/home/admin/.ssh/id_ed25519.pub"; mode = "0644"; }; "ssh-keys-private/jallen-nas" = { path = "/home/admin/.ssh/id_ed25519"; mode = "0600"; }; "ssh-keys-public/desktop-nixos" = { path = "/home/admin/.ssh/authorized_keys"; mode = "0600"; }; "ssh-keys-public/desktop-nixos-root" = { path = "/home/admin/.ssh/authorized_keys2"; mode = "0600"; }; "ssh-keys-public/desktop-windows" = { path = "/home/admin/.ssh/authorized_keys3"; mode = "0600"; }; "ssh-keys-public/macbook-macos" = { path = "/home/admin/.ssh/authorized_keys4"; mode = "0600"; }; }; programs = { bash = { shellAliases = { "llama-status" = "curl -s http://localhost:8127/health 2>/dev/null && echo 'LLaMA.cpp server is running' || echo 'LLaMA.cpp server is not responding'"; }; }; neovim = { enable = true; viAlias = true; vimAlias = true; defaultEditor = true; withRuby = false; withPython3 = true; plugins = [ pkgs.vimPlugins.nvim-tree-lua { plugin = pkgs.vimPlugins.vim-startify; config = "let g:startify_change_to_vcs_root = 0"; type = "lua"; } ]; }; steam-rom-manager = { enable = true; steamUsername = "mjallen18"; # Optional: override default paths if needed environmentVariables = { romsDirectory = "/home/admin/Emulation/roms"; steamDirectory = "/home/admin/.local/share/Steam"; }; emulators = { "Non-SRM Shortcuts" = { enable = true; parserType = "Non-SRM Shortcuts"; extraArgs = ""; }; }; }; }; }