You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 line
3.2 KiB

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