Guest User

Untitled

a guest
Nov 16th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 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 (for ZFS)
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16. boot.loader.grub.device = "/dev/nvme0n1";
  17. boot.initrd.luks.devices = [{
  18. name = "root";
  19. device = "/dev/nvme0n1p2";
  20. preLVM = true;
  21. allowDiscards = true;
  22. }];
  23.  
  24. boot.supportedFilesystems = [ "zfs" ];
  25. nixpkgs.config.allowUnfree = true;
  26.  
  27. networking.hostName = "karbon";
  28. # set hostid for zfs
  29. networking.hostId = "8425e349";
  30.  
  31. networking.networkmanager.enable = true;
  32. security.sudo.wheelNeedsPassword = false;
  33.  
  34. # Set your time zone.
  35. time.timeZone = "Europe/Berlin";
  36.  
  37. # List packages installed in system profile. To search by name, run:
  38. # $ nix-env -qaP | grep wget
  39. environment.systemPackages = with pkgs; [
  40. i3
  41. rofi
  42. fish
  43. ];
  44.  
  45. # use fish as shell
  46. programs.fish.enable = true;
  47.  
  48. # enable virtualbox host
  49. # virtualisation = {
  50. # virtualbox = {
  51. # host.enable = true;
  52. # # disable hardening to allow running as non-root
  53. # host.enableHardening = false;
  54. # };
  55. # libvirtd.enable = true;
  56. #};
  57.  
  58.  
  59. # Enable the OpenSSH daemon.
  60. services.openssh.enable = true;
  61.  
  62. # disable the firewall
  63. networking.firewall.enable = false;
  64.  
  65.  
  66. # Enable the X11 and use i3
  67. services.xserver = {
  68. enable = true;
  69. layout = "gb";
  70. libinput.enable = true;
  71. synaptics.enable = false;
  72. # services.xserver.xkbOptions = "eurosign:e";
  73.  
  74. config = ''
  75. Section "InputClass"
  76. Identifier "Enable libinput for TrackPoint"
  77. MatchIsPointer "on"
  78. Driver "libinput"
  79. EndSection
  80. '';
  81.  
  82.  
  83. windowManager.i3.enable = true;
  84. };
  85.  
  86.  
  87. # Define initial user account. Don't forget to set a password with ‘passwd’.
  88. users.extraUsers.tomster = {
  89. isNormalUser = true;
  90. uid = 1000;
  91. extraGroups = [ "wheel" "vboxusers" "libvirtd" "networkmanager" ];
  92. shell = pkgs.fish;
  93. initialPassword = "changeme";
  94. };
  95.  
  96. # This value determines the NixOS release with which your system is to be
  97. # compatible, in order to avoid breaking some software such as database
  98. # servers. You should change this only after NixOS release notes say you
  99. # should.
  100. system.stateVersion = "17.09"; # Did you read the comment?
  101. system.autoUpgrade.enable = true;
  102.  
  103. }
Add Comment
Please, Sign In to add comment