Klimi's new dotfiles with stow.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

124 строки
3.1 KiB

4 лет назад
4 лет назад
4 лет назад
  1. # user.nix
  2. { config, pkgs, ...}:
  3. let
  4. email = "klimi@sitischu.com";
  5. in
  6. {
  7. imports = [<home-manager/nixos>];
  8. home-manager.useUserPackages = true;
  9. #
  10. #accounts.email.accounts.klimi.address # TODO FIX
  11. users.users.klimi = {
  12. isNormalUser = true;
  13. extraGroups = [ "wheel" "networkmanager" "adbusers" ];
  14. home = "/home/klimi";
  15. description = "Martin Klimeš";
  16. };
  17. # services.xserver.videoDrivers = [ "nvidiaLegacy340" ];
  18. programs.adb.enable = true;
  19. fonts.fonts = with pkgs; [
  20. noto-fonts
  21. noto-fonts-cjk
  22. noto-fonts-emoji
  23. liberation_ttf
  24. fira-code
  25. fira-code-symbols
  26. mplus-outline-fonts
  27. dina-font
  28. proggyfonts
  29. siji
  30. inconsolata
  31. ];
  32. ######## POWER MANAGMENT ######
  33. powerManagement.enable = true;
  34. # powerManagement.powertop.enable = true;
  35. #powerManagement.cpuFreqGovernor = "powersave";
  36. ## EXPERIMENTAL ##
  37. nix.buildCores = 4;
  38. # networking.networkmanager.wifi.powersave = true;
  39. # powerManagement.cpufreq.max = 933000;
  40. # compton -b --unredir-if-possible --backend xr_glx_hybrid --vsync --use-damage --glx-no-stencil
  41. programs.bash.shellAliases = {
  42. nrs =
  43. "sudo nixos-rebuild switch -I nixos-config=/home/klimi/dotfiles/nix/configuration.nix";
  44. nrb =
  45. "sudo nixos-rebuild boot -I nixos-config=/home/klimi/dotfiles/nix/configuration.nix";
  46. };
  47. home-manager.users.klimi = { pkgs, ... }:
  48. let
  49. unstable = import (fetchTarball
  50. "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz") { };
  51. in {
  52. accounts.email.accounts.klimi.address = "klimi@sitischu.com";
  53. accounts.email.accounts.klimi.primary = true;
  54. programs.alacritty.enable = true;
  55. home.keyboard = {
  56. layout = "gb";
  57. options = ["compose:sclk" "ctrl:nocaps"];
  58. };
  59. #############
  60. # syncthing #
  61. #############
  62. services.syncthing.enable = true;
  63. ##########
  64. # xcape #
  65. ##########
  66. services.xcape.enable = true;
  67. # Do not map Control_L because it gets mapped too late
  68. # Mapping it co caps_lock suddenly works... america please explain
  69. services.xcape.mapExpression = { Caps_Lock="Multi_key";};
  70. ###########
  71. # polybar #
  72. ###########
  73. #services.polybar.enable = true;
  74. #services.polybar.config = "${dots}/polybar.config";
  75. #services.polybar.script = "polybar top &";
  76. programs.firefox.enable = true;
  77. home = {
  78. packages = [
  79. pkgs.lm_sensors
  80. pkgs.dunst
  81. pkgs.libnotify
  82. pkgs.bc
  83. pkgs.ranger
  84. pkgs.htop
  85. pkgs.stow # just stow for a workaround...
  86. pkgs.neofetch
  87. pkgs.rofi
  88. pkgs.xclip
  89. pkgs.maim
  90. pkgs.file
  91. pkgs.feh
  92. unstable.riot-desktop
  93. unstable.tdesktop
  94. pkgs.ghc
  95. pkgs.zile
  96. pkgs.nethogs
  97. pkgs.xcape
  98. pkgs.lemonbar-xft
  99. pkgs.xdotool
  100. pkgs.ruby
  101. pkgs.zsh
  102. pkgs.iw
  103. pkgs.xdo
  104. pkgs.emacs
  105. pkgs.tree
  106. pkgs.gotop
  107. ];
  108. #file = {
  109. # ".xinitrc".text = "exec bspwm";
  110. #};
  111. };
  112. };
  113. }