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 =
|
||||
[ # 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";
|
||||
|
|
Loading…
Add table
Reference in a new issue