default.nix 594 B

1234567891011121314151617181920212223242526
  1. { pkgs, lib, config, outputs, ... }:
  2. let
  3. homeLocation = with pkgs.stdenv.hostPlatform;
  4. if isDarwin then "/Users" else "/home";
  5. in
  6. {
  7. imports = [
  8. outputs.modules.global.nix-config
  9. outputs.modules.home-manager.ghostty
  10. ./cli
  11. ];
  12. manual.manpages.enable = false;
  13. xdg.enable = true;
  14. home = {
  15. username = lib.mkDefault "thomas";
  16. homeDirectory = lib.mkDefault "${homeLocation}/${config.home.username}";
  17. sessionVariables = {
  18. EDITOR = "${pkgs.neovim}/bin/nvim";
  19. SHELL = "${pkgs.nushell}/bin/nu";
  20. };
  21. stateVersion = lib.mkDefault "24.11";
  22. };
  23. }