Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

configuration.nix 3.3 KiB

pirms 4 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. wget
  30. youtube-dl
  31. tmux
  32. neofetch
  33. sakura
  34. firefox
  35. home-manager
  36. # xdg
  37. xdg-user-dirs
  38. xdg_utils
  39. # Editors
  40. vscode
  41. nano
  42. vim
  43. # Social
  44. discord
  45. signal-desktop
  46. # Design
  47. darktable
  48. inkscape
  49. gimp
  50. # Torrents
  51. transmission
  52. # Other
  53. simplenote
  54. # Auth
  55. yubioath-desktop
  56. ];
  57. #### Services
  58. services.sshd.enable = true;
  59. #### xserver
  60. services.xserver.enable = true;
  61. services.xserver.layout = "us";
  62. # Display Manager
  63. services.xserver.displayManager.lightdm.enable = true;
  64. services.xserver.displayManager.defaultSession = "none+awesome";
  65. services.xserver.displayManager.lightdm.greeters.mini = {
  66. enable = true;
  67. user = "hms";
  68. extraConfig = ''
  69. [greeter]
  70. show-password-label = true
  71. password-label-text = Enter Credentials:
  72. invalid-password-text = Credentials Invalid
  73. show-input-cursor = true
  74. password-alignment = right
  75. show-image-on-all-monitors = false
  76. [greeter-theme]
  77. background-image = ""
  78. font = "Sans"
  79. font-size = 1em
  80. font-weight = bold
  81. font-style = normal
  82. text-color = "#080800"
  83. error-color = "#F8F8F0"
  84. background-color = "#1B1D1E"
  85. window-color = "#F92672"
  86. border-color = "#080800"
  87. border-width = 2px
  88. layout-space = 15
  89. password-color = "#F8F8F0"
  90. password-background-color = "#1B1D1E"
  91. password-border-color = "#080800"
  92. password-border-width = 2px
  93. '';
  94. };
  95. # Desktop Manager
  96. #services.xserver.desktopManager.mate.enable = true;
  97. # Window Manager
  98. services.xserver.windowManager.awesome.enable = true;
  99. #### User
  100. users.users.hms = {
  101. isNormalUser = true;
  102. home = "/home/hms/";
  103. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  104. };
  105. # This value determines the NixOS release from which the default
  106. # settings for stateful data, like file locations and database versions
  107. # on your system were taken. It‘s perfectly fine and recommended to leave
  108. # this value at the release version of the first install of this system.
  109. # Before changing this value read the documentation for this option
  110. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  111. system.stateVersion = "20.03"; # Did you read the comment?
  112. }