about summary refs log blame commit diff
path: root/hosts/phobos/default.nix
blob: 5d4e4cc8cef833a337030f86826c6a549394b4ba (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                              
                           

    


                                 
                                                  


                                                                   
                                       





                                                                                           


                                         
      
 



                        





                                                                                                                                                                                                                                                                            

                                                                                                   

 
{ config, pkgs, lib, secrets, hostname, inputs, user, ... }: {

  imports = [
    ../../modules/bluetooth
  ];

  # Configure keymap in X11
  services.xserver.layout = "gb";

  # Pick only one of the below networking options.
  networking = {
    wireless = {
      enable = true; # Enables wireless support via wpa_supplicant.
      networks = secrets.wifi_networks;
    };
    # networkmanager.enable = true;  # Easiest to use and most distros use this by default.
    # Configure network proxy if necessary
    # proxy.default = "http://user:password@proxy:port/";
    # proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  };

  environment.systemPackages = with pkgs;
    [
    ];

  programs = {
    steam.enable = true;
  };

  /*  services.udev.extraRules = ''
    SUBSYSTEM=="input", ACTION=="add", ATTRS{bInterfaceProtocol}=="02", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/${user}/.Xauthority", RUN+="${pkgs.xorg.xf86inputsynaptics}/bin/synclient TouchpadOff=1"
    SUBSYSTEM=="input", ACTION=="remove", ATTRS{bInterfaceProtocol}=="02", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceSubClass}=="01", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/${user}/.Xauthority", RUN+="${pkgs.xorg.xf86inputsynaptics}/bin/synclient TouchpadOff=0"
    '';
  */

  environment.etc."nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database;

}