Advertisement
Guest User

Untitled

a guest
Nov 21st, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. { config, pkgs, ...}:
  2.  
  3. {
  4. imports = [ ./vim.nix ./iscsi-boot.nix ./iscsi_module.nix ] ++ pixfix;
  5. environment.systemPackages = with pkgs; [
  6. gitAndTools.gitFull
  7. sqlite screen util nix-repl utillinuxCurses psmisc
  8. (pkgs.makeDesktopItem { name = "screen"; exec = "${pkgs.xterm}/bin/xterm -e ${pkgs.screen}/bin/screen -xRR"; desktopName = "Screen"; genericName = "screen"; categories = "System;TerminalEmulator;"; })
  9. ];
  10. programs = {
  11. screen.screenrc = ''
  12. defscrollback 5000
  13. caption always
  14. termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
  15. term xterm-256color
  16. defbce "on"
  17. '';
  18. ssh = {
  19. knownHosts = [
  20. { hostNames = [ "192.168.2.1" "router.localnet" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMSvyvC18BHfivZJDhWSm7VU3kEElfNfMIfeohkil614"; }
  21. { hostNames = [ "192.168.2.15" "amd.localnet" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJhJRINrY5cFcqZ76GsAK7FU+wQhErlS6APdOIm7xcnW"; }
  22. { hostNames = [ "192.168.2.30" "nix1.localnet" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN3cnHv8e6v3mQvVLc7f7YgbeHKqQY2UtySeNL8Ew4ro"; }
  23. { hostNames = [ "192.168.2.31" "nix2.localnet" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGG8XsjV3ufF2+SWc1isnYqry3tdIqA01GA4d+SSak/F"; }
  24. ];
  25. };
  26. };
  27. nixpkgs.config = {
  28. sqlite.interactive = true;
  29. packageOverrides = pkgs: (pkgs.lib.recursiveUpdate (public { inherit pkgs; }) ((import ./overrides.nix).packageOverrides pkgs));
  30. };
  31. system.extraSystemBuilderCmds = ''
  32. ln -sv ${./.} $out/nixcfg
  33. '';
  34. services = {
  35. openssh = {
  36. enable = true;
  37. permitRootLogin = "yes";
  38. };
  39. };
  40. nix = {
  41. trustedUsers = [ "builder" ];
  42. distributedBuilds = true;
  43. binaryCaches = [
  44. "http://cache.earthtools.ca"
  45. "http://nixcache.localnet"
  46. "https://cache.nixos.org"
  47. ];
  48. binaryCachePublicKeys = [
  49. "c2d.localnet-1:YTVKcy9ZO3tqPNxRqeYEYxSpUH5C8ykZ9ImUKuugf4c="
  50. "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
  51. ];
  52. };
  53. users.extraUsers = {
  54. clever = {
  55. home = "/home/clever";
  56. isNormalUser = true;
  57. extraGroups = [ "wheel" "wireshark" ];
  58. uid = 1000;
  59. openssh.authorizedKeys.keys = with keys; [ clever.amd keys.ramboot clever.laptop ];
  60. initialHashedPassword = passwords.hashedPw;
  61. };
  62. builder = {
  63. uid = 1001;
  64. isNormalUser = true;
  65. openssh.authorizedKeys.keys = [ keys.dual.distro keys.nix1.distro keys.router.distro keys.nix2 keys.amd_distro ];
  66. };
  67. root.openssh.authorizedKeys.keys = with keys; [ keys.dual.distro clever.amd ];
  68. };
  69. users.extraGroups.wireshark.gid = 500;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement