1
0

default.nix 785 B

123456789101112131415161718192021222324252627282930
  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. ./cli
  9. ] ++ (builtins.attrValues outputs.homeManagerModules);
  10. nix.package = lib.mkDefault pkgs.nixVersions.stable;
  11. nix.settings.trusted-users = [ "thomas" ];
  12. nix.extraOptions = ''
  13. warn-dirty = false
  14. experimental-features = nix-command flakes impure-derivations
  15. '';
  16. manual.manpages.enable = false;
  17. xdg.enable = true;
  18. home = {
  19. username = lib.mkDefault "thomas";
  20. homeDirectory = lib.mkDefault "${homeLocation}/${config.home.username}";
  21. sessionVariables = {
  22. EDITOR = "${pkgs.neovim}/bin/nvim";
  23. SHELL = "${pkgs.fish}/bin/fish";
  24. };
  25. stateVersion = lib.mkDefault "24.11";
  26. };
  27. }