pinwheel: Add module for keyboard
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules/light
|
./modules/light
|
||||||
./modules/sound
|
./modules/sound
|
||||||
|
./modules/keyboard
|
||||||
./modules/age
|
./modules/age
|
||||||
./modules/ssh
|
./modules/ssh
|
||||||
./modules/git
|
./modules/git
|
||||||
@@ -89,9 +90,6 @@
|
|||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "sv-latin1";
|
|
||||||
|
|
||||||
# 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.alex = {
|
users.users.alex = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
@@ -131,6 +129,7 @@
|
|||||||
git.enable = true;
|
git.enable = true;
|
||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
|
keyboard.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
tig
|
tig
|
||||||
onlyoffice-bin
|
onlyoffice-bin
|
||||||
qmk
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
|
|||||||
25
hosts/pinwheel/modules/keyboard/default.nix
Normal file
25
hosts/pinwheel/modules/keyboard/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
enabled = config.mod.keyboard.enable;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
mod.keyboard = {
|
||||||
|
enable = lib.mkEnableOption "add keyboard module";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf enabled {
|
||||||
|
console.keyMap = "sv-latin1";
|
||||||
|
|
||||||
|
hardware.keyboard.qmk.enable = true;
|
||||||
|
hardware.keyboard.zsa.enable = true;
|
||||||
|
|
||||||
|
home-manager.users.alex = {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.qmk
|
||||||
|
pkgs.wally-cli
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user