spacepaste

  1.  
  2. # Edit this configuration file to define what should be installed on
  3. # your system. Help is available in the configuration.nix(5) man page
  4. # and in the NixOS manual (accessible by running ‘nixos-help’).
  5. { config, pkgs, ... }:
  6. {
  7. imports =
  8. [ # Include the results of the hardware scan.
  9. ./hardware-configuration.nix
  10. ];
  11. # Use the systemd-boot EFI boot loader.
  12. boot.loader.systemd-boot.enable = true;
  13. boot.loader.efi.canTouchEfiVariables = true;
  14. # boot.loader.grub.device = "/dev/sda";
  15. boot.initrd.luks.devices = [
  16. {
  17. name = "root";
  18. device = "/dev/disk/by-uuid/3e509e68-346b-4c9e-b8f5-2e70f5587a66";
  19. preLVM = true;
  20. allowDiscards = true;
  21. }
  22. ];
  23. networking.hostName = "jule-nixos"; # Define your hostname.
  24. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  25. networking.networkmanager.enable = true;
  26. networking.networkmanager.packages = [ pkgs.networkmanagerapplet ];
  27. # Select internationalisation properties.
  28. i18n = {
  29. consoleFont = "Lat2-Terminus16";
  30. consoleKeyMap = "de";
  31. defaultLocale = "en_US.UTF-8";
  32. };
  33. # Set your time zone.
  34. time.timeZone = "Asia/Singapore";
  35. # List packages installed in system profile. To search, run:
  36. # $ nix search wget
  37. environment.systemPackages = with pkgs; [
  38. wget vim curl sudo nano zsh bash tmux wgetpaste htpdate
  39. busybox lm_sensors lshw mlocate most fuse sakura
  40. gparted dosfstools sshfs-fuse ntfs3g htop lsof
  41. gitAndTools.gitFull i3status
  42. ];
  43. # Some programs need SUID wrappers, can be configured further or are
  44. # started in user sessions.
  45. programs.bash.enableCompletion = true;
  46. # programs.mtr.enable = true;
  47. programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  48. # List services that you want to enable:
  49. # Enable the OpenSSH daemon.
  50. # services.openssh.enable = true;
  51. # Open ports in the firewall.
  52. # networking.firewall.allowedTCPPorts = [ ... ];
  53. # networking.firewall.allowedUDPPorts = [ ... ];
  54. # Or disable the firewall altogether.
  55. networking.firewall.enable = true;
  56. # Enable CUPS to print documents.
  57. # services.printing.enable = true;
  58. # Enable sound.
  59. sound.enable = true;
  60. hardware.pulseaudio.enable = true;
  61. # Enable the X11 windowing system.
  62. services.xserver.enable = true;
  63. services.xserver.layout = "de";
  64. services.xserver.xkbOptions = "eurosign:e";
  65. # Enable touchpad support.
  66. services.xserver.libinput.enable = true;
  67. # Enable the KDE Desktop Environment.
  68. # services.xserver.displayManager.sddm.enable = true;
  69. # services.xserver.desktopManager.plasma5.enable = true;
  70. services.xserver.desktopManager = {
  71. default = "xfce";
  72. xfce = {
  73. enable = true;
  74. enableXfwm = false;
  75. noDesktop = true;
  76. };
  77. };
  78. services.xserver.windowManager.i3.enable = true;
  79. services.xserver.windowManager.default = "i3";
  80. # Define a user account. Don't forget to set a password with ‘passwd’.
  81. users.extraUsers.maerwald = {
  82. isNormalUser = true;
  83. uid = 1000;
  84. };
  85. nixpkgs.config.allowUnfree = true;
  86. # This value determines the NixOS release with which your system is to be
  87. # compatible, in order to avoid breaking some software such as database
  88. # servers. You should change this only after NixOS release notes say you
  89. # should.
  90. system.stateVersion = "18.03"; # Did you read the comment?
  91. }
  92.