salvoza

home.nix

Sep 7th, 2024
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. salvo@nixos:~/.dotfiles/ > cat home.nix
  2. { config, inputs, lib, pkgs, ... }:
  3.  
  4.  
  5. let
  6. myAliases = {
  7. ll = "ls -al";
  8. ".." = "cd ..";
  9. };
  10.  
  11. in
  12. {
  13.  
  14.  
  15. # Let Home Manager install and manage itself.
  16. programs.home-manager.enable = true;
  17.  
  18.  
  19. # Home Manager needs a bit of information about you and the paths it should
  20. # manage.
  21. home.username = "salvo";
  22. home.homeDirectory = "/home/salvo";
  23.  
  24.  
  25. # Git
  26. programs.git = {
  27. enable = true;
  28. userName = "salvoza";
  29. userEmail = "salvo@reaper.org";
  30. extraConfig = {
  31. init.defaultBranch = "main";
  32. safe.directory = ["/etc/nixos" "/home/salvo/.dotfiles"];
  33. };
  34. };
  35.  
  36.  
  37. wayland.windowManager.hyprland = {
  38. enable = true;
  39. # plugins = [
  40. # inputs.hyprland-plugins.packages."${pkgs.system}".borders-plus-plus
  41. # ];
  42.  
  43. settings = {
  44. # "plugin:borders-plus-plus" = {
  45. # add_borders = 1; # 0 - 9
  46. #
  47. # # you can add up to 9 borders
  48. # "col.border_1" = "rgb(ffffff)";
  49. # "col.border_2" = "rgb(2222ff)";
  50. #
  51. # # -1 means "default" as in the one defined in general:border_size
  52. # border_size_1 = 10;
  53. # border_size_2 = -1;
  54. #
  55. # # makes outer edges match rounding of the parent. Turn on / off to better understand. Default = on.
  56. # natural_rounding = "yes";
  57. # exec-once = ''${startupScript}/bin/start'';
  58. # };
  59. };
  60. };
  61.  
  62.  
  63. home.stateVersion = "24.05"; # Please read the comment before changing.
  64.  
  65. # The home.packages option allows you to install Nix packages into your
  66. # environment.
  67. home.packages = [
  68.  
  69. ];
  70.  
  71. # Home Manager is pretty good at managing dotfiles. The primary way to manage
  72. # plain files is through 'home.file'.
  73.  
  74. home.file = {
  75. };
  76.  
  77. home.sessionVariables = {
  78. # EDITOR = "vim";
  79. };
  80.  
  81. programs.bash = {
  82. enable = false;
  83. shellAliases = myAliases;
  84. };
  85.  
  86. programs.zsh = {
  87. enable = true;
  88. #enableAutosuggestions = true;
  89. autosuggestion.enable = true;
  90. syntaxHighlighting.enable = true;
  91. enableCompletion = true;
  92. shellAliases = myAliases;
  93. # initExtra = ''
  94. # PROMPT=" ◉ %U%F{magenta}%n%f%u@%U%F{blue}%m%f%u:%F{yellow}%~%f %F{green}→%f "
  95. # RPROMPT="%F{red}▂%f%F{yellow}▄%f%F{green}▆%f%F{cyan}█%f%F{blue}▆%f%F{magenta}▄%f%F{white}▂%f"
  96. # [ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
  97. # '';
  98. };
  99.  
  100. programs.vim = {
  101. settings = {
  102. expandtab = true;
  103. history = 4000;
  104. tabstop = 2;
  105. shiftwidth = 2;
  106. softtabstop = 2;
  107. };
  108. };
  109.  
  110. programs.kitty = {
  111. enable = true;
  112. font.name = "jetbrains-mono";
  113. font.size = 16;
  114. extraConfig = ''
  115. include /home/salvo/.config/kitty/dracula.conf
  116. include /home/salvo/.config/kitty/diff.conf
  117. '';
  118. };
  119.  
  120.  
  121. imports = [
  122. # ./kitty.nix
  123. # ./fonts.nix
  124. ];
  125.  
  126.  
  127. }
Add Comment
Please, Sign In to add comment