Enable openrazer

This commit is contained in:
Natsu Kagami 2021-11-27 21:02:00 -05:00
parent 5487a65026
commit 54449a4506
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -6,7 +6,8 @@
{
imports =
[ # Include the results of the hardware scan.
[
# Include the results of the hardware scan.
./hardware-configuration.nix
# secret management
./secrets
@ -62,7 +63,7 @@
# Select internationalisation properties.
i18n.defaultLocale = "ja_JP.UTF-8";
i18n.inputMethod.enabled = "ibus";
i18n.inputMethod.ibus.engines = (with pkgs.ibus-engines; [bamboo mozc libpinyin]);
i18n.inputMethod.ibus.engines = (with pkgs.ibus-engines; [ bamboo mozc libpinyin ]);
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
@ -88,11 +89,18 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Enable razer daemon
hardware.openrazer.enable = true;
hardware.openrazer.keyStatistics = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.nki = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
extraGroups = [
"wheel" # Enable sudo for the user.
"plugdev" # Enable openrazer-daemon privileges
];
};
# Allow all packages
@ -222,8 +230,8 @@
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-21.05/";
# tinc network
sops.secrets."tinc/ed25519-private-key" = {};
sops.secrets."tinc/rsa-private-key" = {};
sops.secrets."tinc/ed25519-private-key" = { };
sops.secrets."tinc/rsa-private-key" = { };
services.my-tinc = {
enable = true;
hostName = "home";