Klimi's new dotfiles with stow.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

141 行
4.0 KiB

  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. { config, pkgs, ... }:
  5. let
  6. userName = "klimi";
  7. name = "Martin Klimeš <Klimi>";
  8. email = "klimi@sitischu.com";
  9. hostName = "nixos";
  10. timeZone = "Europe/Prague";
  11. dots = "/home/klimi/dotfiles/dotfiles/";
  12. #home-manager = builtins.fetchGit {
  13. # url = "https://github.com/rycee/home-manager.git";
  14. # rev = "dd94a849df69fe62fe2cb23a74c2b9330f1189ed"; # CHANGEME
  15. # ref = "release-18.09";
  16. #};
  17. in {
  18. imports = [ # Include the results of the hardware scan.
  19. ./hardware-configuration.nix
  20. #"${home-manager}/nixos"
  21. #<home-manager/nixos>
  22. ./user.nix
  23. ./machines/G560.nix
  24. ];
  25. # Linux kernel Latest
  26. boot.kernelPackages = pkgs.linuxPackages_latest;
  27. # Use the GRUB 2 boot loader.
  28. boot.loader.grub.enable = true;
  29. boot.loader.grub.version = 2;
  30. # boot.loader.grub.efiSupport = true;
  31. # boot.loader.grub.efiInstallAsRemovable = true;
  32. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  33. # Define on which hard drive you want to install Grub.
  34. networking = {
  35. hostName = hostName;
  36. networkmanager.enable = true;
  37. };
  38. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  39. # Configure network proxy if necessary
  40. # networking.proxy.default = "http://user:password@proxy:port/";
  41. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  42. # Select internationalisation properties.
  43. i18n = {
  44. consoleFont = "Lat2-Terminus16";
  45. consoleKeyMap = "uk";
  46. defaultLocale = "en_GB.UTF-8";
  47. # consoleUseXkbConfig = true; WELL IDK
  48. };
  49. # Set your time zone.
  50. time.timeZone = timeZone;
  51. # List packages installed in system profile. To search, run: # $ nix search wget
  52. environment.systemPackages = with pkgs; [
  53. wget
  54. vim
  55. git
  56. killall
  57. acpi
  58. gnumake
  59. gcc
  60. xorg.libxcb.dev
  61. wirelesstools
  62. ];
  63. # Some programs need SUID wrappers, can be configured further or are
  64. # started in user sessions.
  65. # programs.mtr.enable = true;
  66. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  67. # List services that you want to enable:
  68. # Enable the OpenSSH daemon.
  69. # services.openssh.enable = true;
  70. nixpkgs.config = {
  71. allowUnfree = true;
  72. };
  73. # Open ports in the firewall.
  74. networking.firewall.allowedTCPPorts = [ 22000 ];
  75. # networking.firewall.allowedUDPPorts = [ ... ];
  76. # Or disable the firewall altogether.
  77. # networking.firewall.enable = false;
  78. # Enable CUPS to print documents.
  79. # services.printing.enable = true;
  80. # Enable sound.
  81. sound.enable = true;
  82. hardware.pulseaudio.enable = true;
  83. # Enable the X11 windowing system.
  84. # services.xserver.enable = true;
  85. # services.xserver.layout = "us";
  86. # services.xserver.xkbOptions = "eurosign:e";
  87. services.xserver = {
  88. enable = true;
  89. layout = "gb";
  90. xkbOptions = "compose:sclk,ctrl:nocaps";
  91. displayManager.sddm.enable = true;
  92. windowManager.bspwm = {
  93. enable = true;
  94. #configFile = "${dots}bspwmrc";
  95. #sxhkd.configFile = "${dots}sxhkdrc";
  96. #sxhkd.configFile = "/home/klimi/dotfiles/dotfiles/sxhkdrc";
  97. ###########################################################
  98. # this doesnt work so i will try to do it in home-manager #
  99. ###########################################################
  100. };
  101. };
  102. # Enable touchpad support.
  103. services.xserver.libinput.enable = true;
  104. # Enable the KDE Desktop Environment.
  105. # services.xserver.displayManager.sddm.enable = true;
  106. # services.xserver.desktopManager.plasma5.enable = true;
  107. # Define a user account. Don't forget to set a password with ‘passwd’.
  108. # in user.nix
  109. # This value determines the NixOS release with which your system is to be
  110. # compatible, in order to avoid breaking some software such as database
  111. # servers. You should change this only after NixOS release notes say you
  112. # should.
  113. system.stateVersion = "19.03"; # Did you read the comment?
  114. }