2018-10-31 00:42:58 +01:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[
|
|
|
|
|
./hardware-configuration.nix
|
2019-10-04 22:01:49 +02:00
|
|
|
|
../common-cli.nix
|
|
|
|
|
../common-gui.nix
|
2018-10-31 00:42:58 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2018-12-12 23:42:02 +01:00
|
|
|
|
boot.kernelParams = ["acpi_enforce_resources=lax"];
|
2018-10-31 00:42:58 +01:00
|
|
|
|
boot.tmpOnTmpfs = true;
|
|
|
|
|
|
2019-01-24 18:58:13 +01:00
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
2018-10-31 00:42:58 +01:00
|
|
|
|
services.udev.packages = with pkgs; [
|
2018-12-12 23:42:02 +01:00
|
|
|
|
usb-modeswitch-data # Logitech G920
|
2018-10-31 00:42:58 +01:00
|
|
|
|
];
|
|
|
|
|
|
2019-01-16 23:33:01 +01:00
|
|
|
|
# Corsair K70
|
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
|
SUBSYSTEM=="usb", ATTR{bInterfaceNumber}=="00", ATTRS{idVendor}=="1b1c", ATTRS{idProduct}=="1b09", RUN+="${pkgs.bash}/bin/sh -c '${pkgs.coreutils}/bin/echo -n %k > /sys''${DEVPATH}/driver/unbind'"
|
|
|
|
|
'';
|
|
|
|
|
|
2019-10-04 22:01:49 +02:00
|
|
|
|
networking.hostName = "paul-fixe";
|
2018-10-31 00:42:58 +01:00
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2018-12-12 23:42:02 +01:00
|
|
|
|
usb_modeswitch
|
2018-10-31 00:42:58 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.wireshark.enable = true;
|
|
|
|
|
programs.wireshark.package = pkgs.wireshark;
|
|
|
|
|
|
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
users.users.paul = {
|
|
|
|
|
isNormalUser = true;
|
2018-12-12 23:42:02 +01:00
|
|
|
|
extraGroups = [ "wheel" "networkmanager" "wireshark" "input" ];
|
2018-10-31 00:42:58 +01:00
|
|
|
|
uid = 1000;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
|
services.syncthing.user = "paul";
|
|
|
|
|
services.syncthing.group = "users";
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "18.09"; # Did you read the comment?
|
|
|
|
|
}
|