Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. { config, pkgs, lib, ... }:
  2.  
  3. {
  4. boot.loader.grub.enable = false;
  5. boot.loader.generic-extlinux-compatible.enable = true;
  6. boot.kernelPackages = pkgs.linuxPackages_hardkernel_4_14;
  7.  
  8. nix.binaryCaches = lib.mkForce [ "http://nixos-arm.dezgeg.me/channel" ];
  9. nix.binaryCachePublicKeys = [ "nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%" ];
  10.  
  11. fileSystems = {
  12. "/boot" = {
  13. device = "/dev/disk/by-label/boot";
  14. fsType = "vfat";
  15. };
  16. "/" = {
  17. device = "/dev/disk/by-label/root";
  18. fsType = "ext4";
  19. };
  20. };
  21.  
  22. services.sshd.enable = true;
  23. services.weechat.enable = true;
  24. services.transmission.enable = true;
  25.  
  26. swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];
  27.  
  28. environment = {
  29. systemPackages = with pkgs; [
  30. cryptsetup
  31. htop
  32. zsh
  33. nmap
  34. tmux
  35. kakoune
  36. wget
  37. ];
  38. };
  39.  
  40. networking.hostName = "loki";
  41.  
  42. time.timeZone = "America/Denver";
  43.  
  44. security.sudo = {
  45. enable = true;
  46. wheelNeedsPassword = true;
  47. };
  48.  
  49. users = {
  50. extraUsers.dmitriy = {
  51. isNormalUser = true;
  52. home = "/home/dmitriy";
  53. uid = 1000;
  54. extraGroups = [ "weechat" "wheel" "transmission" ];
  55. openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAz0FdNzA+aworTtvhnPBqk6w8LkI7Oa1I4X2rJm+wk+Lbp4RNN4W5bMW/mqafvI86C0QG2AMqheFUWIRoRGnjytTTdgUVVy6hTofD9itP44A07ZF+FtoD8P1ECG6/4NtFTb8xNdKfjDFIn1LbKxMes9TOOrB/orAevJs74oCq5OrMXBICxRoIvuiJp6vgwMWVbgxtjstVtIS4edaIKI12jFG3KCgvGGYNSMt+9gsc5yT7N0LIsuRhbi//L8dtVSb+NeDlUWV28CuFFSCjxnA1SF9ZKjGlwcOZKM4bcFMLIwNM08AhVC7HisuusJcuy8+HbRj4jsm0vrwPtjTHJmQD dmitriyf@dmitriy.irv.corp.google.com"];
  56. };
  57. };
  58.  
  59. programs = {
  60. zsh.enable = true;
  61. };
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement