Guest User

Untitled

a guest
Feb 1st, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running β€˜nixos-help’).
  4.  
  5. { config, pkgs, ... }:
  6.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the GRUB 2 boot loader.
  14. boot.loader.grub.enable = true;
  15. boot.loader.grub.version = 2;
  16. boot.loader.grub.efiSupport = false;
  17. boot.loader.grub.device = "/dev/sda";
  18.  
  19.  
  20.  
  21. # List packages installed in system profile. To search, run:
  22. # $ nix search wget
  23. environment = {
  24. systemPackages = with pkgs; [
  25. wget vim git tmux ansible manpages
  26. ];
  27. variables = {
  28. EDITOR = "${pkgs.vim}/bin/vim";
  29. };
  30. };
  31.  
  32. fileSystems."/space" =
  33. { device = "/dev/disk/by-label/Drobo01";
  34. fsType = "ext4";
  35. };
  36.  
  37. # Some programs need SUID wrappers, can be configured further or are
  38. # started in user sessions.
  39.  
  40. # List services that you want to enable:
  41.  
  42. # Enable the OpenSSH daemon.
  43.  
  44. # Open ports in the firewall.
  45. # networking.firewall.allowedTCPPorts = [ ... ];
  46. # networking.firewall.allowedUDPPorts = [ ... ];
  47. # Or disable the firewall altogether.
  48. networking.firewall.enable = false;
  49. networking.hostName = "mhub"; # Define your hostname.
  50. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  51.  
  52. # Enable CUPS to print documents.
  53. # services.printing.enable = true;
  54.  
  55. # Enable sound.
  56. # sound.enable = true;
  57. hardware.pulseaudio.enable = true;
  58.  
  59. # Enable the X11 windowing system.
  60.  
  61. # Enable touchpad support.
  62. # services.xserver.libinput.enable = true;
  63.  
  64. # Enable the KDE Desktop Environment.
  65. # services.xserver.displayManager.sddm.enable = true;
  66. # services.xserver.desktopManager.plasma5.enable = true;
  67.  
  68. nixpkgs.config.allowUnfree = true;
  69.  
  70. programs = {
  71. dconf.enable = true;
  72. gnupg.agent = { enable = true; enableSSHSupport = true; };
  73. mtr.enable = true;
  74. zsh.enable = true;
  75. tmux = {
  76. enable = true;
  77. keyMode = "vi";
  78. clock24 = true;
  79. secureSocket = false;
  80. };
  81. };
  82.  
  83. users.users.marcus = {
  84. isNormalUser = true;
  85. description = "Marcus Ramberg";
  86. extraGroups = [ "wheel" "networkmanager" ];
  87. uid = 1000;
  88. shell = pkgs.zsh;
  89. };
  90.  
  91.  
  92.  
  93. services = {
  94. dbus.packages = [ pkgs.gnome3.dconf ];
  95. caddy = {
  96. enable = true;
  97. agree = true;
  98. config =
  99. ''
  100. home.means.no {
  101. proxy / mhome.lan:8123 {
  102. websocket
  103. transparent
  104. }
  105. }
  106. '';
  107. };
  108.  
  109. openssh.enable = true;
  110. plex.enable = true;
  111. radarr.enable = true;
  112. sonarr.enable = true;
  113.  
  114. xserver = {
  115. enable = true;
  116. layout = "us";
  117. xkbOptions = "eurosign:e";
  118. desktopManager = {
  119. default = "xfce";
  120. xterm.enable = false;
  121. xfce = {
  122. enable = true;
  123. noDesktop = true;
  124. enableXfwm = false;
  125. };
  126. };
  127. windowManager.i3.enable = true;
  128. windowManager.i3.package = pkgs.i3-gaps;
  129. };
  130. };
  131.  
  132. security.sudo.wheelNeedsPassword=false;
  133. system.autoUpgrade.enable = true;
  134. time.timeZone = "Europe/Oslo";
  135.  
  136.  
  137. # This value determines the NixOS release with which your system is to be
  138. # compatible, in order to avoid breaking some software such as database
  139. # servers. You should change this only after NixOS release notes say you
  140. # should.
  141. #
  142. system.stateVersion = "18.09"; # Did you read the comment?
  143. }
Add Comment
Please, Sign In to add comment