{ config, pkgs, lib, zero, ... }:
let
  username = "cw";
in
{
  imports = [
    # "${zero}/profiles/i3wm.nix"
    # /home/cw/0x00/profiles/plasma-tiling.nix
    "${zero}/profiles/zsh-starship.nix"
    "${zero}/profiles/alias.nix"
    # (import /home/cw/0x00/profiles/home-manager.nix { inherit username pkgs config lib; })
  ];
  home-manager = {
    useGlobalPkgs = true;
    useUserPackages = true;
    users.cw = {
      imports = [
        ./cw-home.nix
        # doom-emacs.hmModule
      ];
    };
  };
  #HACK https://github.com/nix-community/home-manager/issues/1116 I MaRkEd tHiS IsSuE As sTaLe dUe tO InAcTiViTy
  # services.xserver.desktopManager.xfce = {
  #   enable = true;
  #   noDesktop = true;
  #   enableXfwm = false;
  # };
  # services.xserver.displayManager.defaultSession = "xfce+i3";
  #HACK https://github.com/NixOS/nixpkgs/issues/70142 https://discourse.nixos.org/t/opening-i3-from-home-manager-automatically/4849/7
  services.xserver.desktopManager.session = [
    {
      name = "xsession";
      start = ''
        ${pkgs.runtimeShell} $HOME/.hm-xsession &
        waitPID=$!
      '';
    }
  ];
  stylix = {
    # image = ./walls/wallpapersden.com_cyberpunk-girl-futuristic-motorcycle_2560x1440.jpg;
    image = ./walls/club-707-cyberpunk-city-5k-gp-2560x1440.jpg;
    polarity = "dark";
  };
  users.users.cw = {
    # openssh.authorizedKeys.keyFiles = [ /home/cw/.ssh/id_rsa.pub ];
    shell = pkgs.zsh;
    isNormalUser = true;
    packages = with pkgs; [
#       git
#       wget curl
#       charm
#       gotify-cli
#       nmap
#       vim nano
#       bpytop
#       ranger
# #      sshuttle
#       fzf
#       updog
#       wormhole-william
# #      gitAndTools.gh
#       nixos-shell
#       # s-tui
#       twtxt
    ];
    # extraGroups = [ "vboxusers" "nixbld" "twtxt" "syncthing" "media" "wheel" "audio" "jackaudio" "ipfs" "dialout" ]; # Wheel = sudo
    extraGroups = [ "music" "ipfs" "media" "archivebox" "warez" "wheel" "nncp" "syncthing" "dialout" ];
  };
  networking.hosts = {
    "127.42.0.69" = [ "insert.here" ];
  };
}