Enable openrazer
This commit is contained in:
parent
5487a65026
commit
54449a4506
1 changed files with 63 additions and 55 deletions
|
@ -6,7 +6,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[
|
||||||
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# secret management
|
# secret management
|
||||||
./secrets
|
./secrets
|
||||||
|
@ -62,7 +63,7 @@
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "ja_JP.UTF-8";
|
i18n.defaultLocale = "ja_JP.UTF-8";
|
||||||
i18n.inputMethod.enabled = "ibus";
|
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 = {
|
# console = {
|
||||||
# font = "Lat2-Terminus16";
|
# font = "Lat2-Terminus16";
|
||||||
# keyMap = "us";
|
# keyMap = "us";
|
||||||
|
@ -88,11 +89,18 @@
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# services.xserver.libinput.enable = true;
|
# 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’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.nki = {
|
users.users.nki = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [
|
||||||
|
"wheel" # Enable ‘sudo’ for the user.
|
||||||
|
"plugdev" # Enable openrazer-daemon privileges
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow all packages
|
# Allow all packages
|
||||||
|
@ -222,8 +230,8 @@
|
||||||
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-21.05/";
|
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-21.05/";
|
||||||
|
|
||||||
# tinc network
|
# tinc network
|
||||||
sops.secrets."tinc/ed25519-private-key" = {};
|
sops.secrets."tinc/ed25519-private-key" = { };
|
||||||
sops.secrets."tinc/rsa-private-key" = {};
|
sops.secrets."tinc/rsa-private-key" = { };
|
||||||
services.my-tinc = {
|
services.my-tinc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "home";
|
hostName = "home";
|
||||||
|
|
Loading…
Add table
Reference in a new issue