Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

configuration.nix 3.3 KiB

před 4 roky
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. ###################################################
  2. #
  3. # HMS NixOS Conf
  4. # 2020-8-29
  5. #
  6. { config, pkgs, ... }:
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. # home-manager config
  12. #./home.nix
  13. ];
  14. #### Boot
  15. boot.loader.grub.enable = true;
  16. boot.loader.grub.version = 2;
  17. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  18. #### Network
  19. networking.useDHCP = false;
  20. networking.interfaces.ens18.useDHCP = true;
  21. #### Time/Date
  22. time.timeZone = "America/Los_Angeles";
  23. #### Packages
  24. nixpkgs.config = {
  25. allowUnfree = true;
  26. };
  27. environment.systemPackages = with pkgs; [
  28. # Basics
  29. git
  30. wget
  31. youtube-dl
  32. tmux
  33. neofetch
  34. sakura
  35. firefox
  36. home-manager
  37. # xdg
  38. xdg-user-dirs
  39. xdg_utils
  40. # Editors
  41. vscode
  42. nano
  43. vim
  44. # Social
  45. discord
  46. signal-desktop
  47. # Design
  48. darktable
  49. inkscape
  50. gimp
  51. # Torrents
  52. transmission
  53. # Other
  54. simplenote
  55. # Auth
  56. yubioath-desktop
  57. ];
  58. #### Services
  59. services.sshd.enable = true;
  60. #### xserver
  61. services.xserver.enable = true;
  62. services.xserver.layout = "us";
  63. # Display Manager
  64. services.xserver.displayManager.lightdm.enable = true;
  65. services.xserver.displayManager.defaultSession = "none+awesome";
  66. services.xserver.displayManager.lightdm.greeters.mini = {
  67. enable = true;
  68. user = "hms";
  69. extraConfig = ''
  70. [greeter]
  71. show-password-label = true
  72. password-label-text = Enter Credentials:
  73. invalid-password-text = Credentials Invalid
  74. show-input-cursor = true
  75. password-alignment = right
  76. show-image-on-all-monitors = false
  77. [greeter-theme]
  78. background-image = ""
  79. font = "Sans"
  80. font-size = 1em
  81. font-weight = bold
  82. font-style = normal
  83. text-color = "#080800"
  84. error-color = "#F8F8F0"
  85. background-color = "#1B1D1E"
  86. window-color = "#F92672"
  87. border-color = "#080800"
  88. border-width = 2px
  89. layout-space = 15
  90. password-color = "#F8F8F0"
  91. password-background-color = "#1B1D1E"
  92. password-border-color = "#080800"
  93. password-border-width = 2px
  94. '';
  95. };
  96. # Desktop Manager
  97. #services.xserver.desktopManager.mate.enable = true;
  98. # Window Manager
  99. services.xserver.windowManager.awesome.enable = true;
  100. #### User
  101. users.users.hms = {
  102. isNormalUser = true;
  103. home = "/home/hms/";
  104. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  105. };
  106. # This value determines the NixOS release from which the default
  107. # settings for stateful data, like file locations and database versions
  108. # on your system were taken. It‘s perfectly fine and recommended to leave
  109. # this value at the release version of the first install of this system.
  110. # Before changing this value read the documentation for this option
  111. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  112. system.stateVersion = "20.03"; # Did you read the comment?
  113. }