1
0

default.nix 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. { config, pkgs, lib, inputs, host, ... }:
  2. let
  3. hostname = host.hostname;
  4. in
  5. {
  6. config = {
  7. home.file.".config/hypr/hyprland.lua".source = ./hypr/hyprland.lua;
  8. home.file.".config/hypr/modules/autostart.lua".source = ./hypr/modules/autostart.lua;
  9. home.file.".config/hypr/modules/environment.lua".source = ./hypr/modules/environment.lua;
  10. home.file.".config/hypr/modules/look_and_feel.lua".source = ./hypr/modules/look_and_feel.lua;
  11. home.file.".config/hypr/modules/misc.lua".source = ./hypr/modules/misc.lua;
  12. home.file.".config/hypr/modules/input.lua".source = ./hypr/modules/input.lua;
  13. home.file.".config/hypr/modules/keybindings.lua".source = ./hypr/modules/keybindings.lua;
  14. home.file.".config/hypr/modules/windows_and_workspaces.lua".source = ./hypr/modules/windows_and_workspaces.lua;
  15. home.file.".config/hypr/modules/monitors.lua".source = (./. + "/../../../../hosts/${hostname}/home/modules/desktop/hyprland/hypr/modules/monitors.lua");
  16. home.file.".config/hypr/modules/shell.lua".source = (./. + "/../../../../hosts/${hostname}/home/modules/desktop/hyprland/hypr/modules/shell.lua");
  17. xdg = {
  18. userDirs = {
  19. enable = true;
  20. createDirectories = true;
  21. documents = "$HOME/Documents";
  22. download = "$HOME/Downloads";
  23. desktop = "$HOME/Desktop";
  24. music = "$HOME/Music";
  25. pictures = "$HOME/Pictures";
  26. videos = "$HOME/Videos";
  27. projects = "$HOME/Projects";
  28. };
  29. mimeApps = {
  30. enable = true;
  31. defaultApplications = {
  32. "inode/directory" = [ "org.kde.dolphin.desktop" ];
  33. "x-scheme-handler/http" = "firefox.desktop";
  34. "x-scheme-handler/https" = "firefox.desktop";
  35. "text/plain" = "code.desktop";
  36. "text/csv" = "code.desktop";
  37. "application/pdf" = "firefox.desktop";
  38. "image/jpeg" = "org.nomacs.ImageLounge.desktop";
  39. "image/png" = "org.nomacs.ImageLounge.desktop";
  40. "image/gif" = "org.nomacs.ImageLounge.desktop";
  41. "image/webp" = "org.nomacs.ImageLounge.desktop";
  42. "image/bmp" = "org.nomacs.ImageLounge.desktop";
  43. "image/tiff" = "org.nomacs.ImageLounge.desktop";
  44. "image/svg+xml" = "org.nomacs.ImageLounge.desktop";
  45. "image/x-icon" = "org.nomacs.ImageLounge.desktop";
  46. "audio/mpeg" = "vlc.desktop";
  47. "video/mp4" = "vlc.desktop";
  48. "video/quicktime" = "vlc.desktop";
  49. "video/vnd.avi" = "vlc.desktop";
  50. "application/x-compressed-tar" = "org.kde.ark.desktop";
  51. "x-scheme-handler/unknown" = "dms-open.desktop";
  52. };
  53. };
  54. };
  55. };
  56. }