{ lib, namespace, ... }:
{
  home.username = "matt";

  ${namespace} = {
    shell-aliases = {
      enable = true;
      flakeInputs = [
        "pi4-nixpkgs"
        "pi4-home-manager"
        "pi4-impermanence"
        "pi4-sops-nix"
        "pi4-nixos-hardware"
        "pi4-nixos-raspberrypi"
        "pi4-disko"
      ];
    };
  };

  sops = {
    age.keyFile = "/home/matt/.config/sops/age/keys.txt";
    defaultSopsFile = "/etc/nixos/secrets/secrets.yaml";
    validateSopsFiles = false;
    secrets = {
      "ssh-keys-public/pi4" = {
        path = "/home/matt/.ssh/id_ed25519.pub";
        mode = "0644";
      };
      "ssh-keys-private/pi4" = {
        path = "/home/matt/.ssh/id_ed25519";
        mode = "0600";
      };
      #     "ssh-keys-public/desktop-nixos" = {
      #       path = "/home/matt/.ssh/authorized_keys";
      #       mode = "0600";
      #     };

      #     "ssh-keys-public/desktop-nixos-root" = {
      #       path = "/home/matt/.ssh/authorized_keys2";
      #       mode = "0600";
      #     };

      #     "ssh-keys-public/desktop-windows" = {
      #       path = "/home/matt/.ssh/authorized_keys3";
      #       mode = "0600";
      #     };

      #     "ssh-keys-public/macbook-macos" = {
      #       path = "/home/matt/.ssh/authorized_keys4";
      #       mode = "0600";
      #     };
    };
  };

  programs = {
    mangohud.enable = lib.mkForce true;
  };

  services = {
    nextcloud-client.enable = lib.mkForce false;
    kdeconnect = {
      enable = false;
      indicator = false;
    };
  };
}
