mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
formated whole config with alejandra
This commit is contained in:
+40
-39
@@ -1,56 +1,57 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
(pkgs.anki.withAddons [
|
||||
(pkgs.ankiAddons.recolor.withConfig {
|
||||
config = {
|
||||
# we must specify all the colors or it crashes as this overwrite the whole colors set
|
||||
# we must specify all the colors or it crashes as this overwrite the whole colors set
|
||||
colors = {
|
||||
# ===== Foregrounds =====
|
||||
FG = [ "Foreground" "#ebdbb2" "#ebdbb2" "" ];
|
||||
FG_SUBTLE = [ "Subtle FG" "#d5c4a1" "#d5c4a1" "" ];
|
||||
FG_FAINT = [ "Faint FG" "#a89984" "#a89984" "" ];
|
||||
FG_DISABLED = [ "Disabled FG" "#928374" "#928374" "" ];
|
||||
# ===== Foregrounds =====
|
||||
FG = ["Foreground" "#ebdbb2" "#ebdbb2" ""];
|
||||
FG_SUBTLE = ["Subtle FG" "#d5c4a1" "#d5c4a1" ""];
|
||||
FG_FAINT = ["Faint FG" "#a89984" "#a89984" ""];
|
||||
FG_DISABLED = ["Disabled FG" "#928374" "#928374" ""];
|
||||
|
||||
# ===== Main Background Layers =====
|
||||
BG = [ "Background" "#1d2021" "#1d2021" "" ];
|
||||
MAIN_BG = [ "Main Background" "#1d2021" "#1d2021" "" ];
|
||||
VIEW_BG = [ "View Background" "#282828" "#282828" "" ];
|
||||
EDITOR_BG = [ "Editor Background" "#282828" "#282828" "" ];
|
||||
CANVAS = [ "Canvas" "#282828" "#282828" "" ];
|
||||
CANVAS_ELEVATED = [ "Elevated Canvas" "#32302f" "#32302f" "" ];
|
||||
# ===== Main Background Layers =====
|
||||
BG = ["Background" "#1d2021" "#1d2021" ""];
|
||||
MAIN_BG = ["Main Background" "#1d2021" "#1d2021" ""];
|
||||
VIEW_BG = ["View Background" "#282828" "#282828" ""];
|
||||
EDITOR_BG = ["Editor Background" "#282828" "#282828" ""];
|
||||
CANVAS = ["Canvas" "#282828" "#282828" ""];
|
||||
CANVAS_ELEVATED = ["Elevated Canvas" "#32302f" "#32302f" ""];
|
||||
|
||||
# ===== Tables & Lists =====
|
||||
TABLE_BG = [ "Table Background" "#282828" "#282828" "" ];
|
||||
TABLE_ALT_BG = [ "Table Alt Background" "#32302f" "#32302f" "" ];
|
||||
HEADER_BG = [ "Header Background" "#3c3836" "#3c3836" "" ];
|
||||
SELECTED_BG = [ "Selected Background" "#504945" "#504945" "" ];
|
||||
# ===== Tables & Lists =====
|
||||
TABLE_BG = ["Table Background" "#282828" "#282828" ""];
|
||||
TABLE_ALT_BG = ["Table Alt Background" "#32302f" "#32302f" ""];
|
||||
HEADER_BG = ["Header Background" "#3c3836" "#3c3836" ""];
|
||||
SELECTED_BG = ["Selected Background" "#504945" "#504945" ""];
|
||||
|
||||
# ===== Borders =====
|
||||
BORDER = [ "Border" "#504945" "#504945" "" ];
|
||||
FAINT_BORDER = [ "Faint Border" "#3c3836" "#3c3836" "" ];
|
||||
# ===== Borders =====
|
||||
BORDER = ["Border" "#504945" "#504945" ""];
|
||||
FAINT_BORDER = ["Faint Border" "#3c3836" "#3c3836" ""];
|
||||
|
||||
# ===== Buttons =====
|
||||
BUTTON_GRADIENT_START = [ "Button Start" "#3c3836" "#3c3836" "" ];
|
||||
BUTTON_GRADIENT_END = [ "Button End" "#3c3836" "#3c3836" "" ];
|
||||
BUTTON_HOVER = [ "Button Hover" "#665c54" "#665c54" "" ];
|
||||
# ===== Buttons =====
|
||||
BUTTON_GRADIENT_START = ["Button Start" "#3c3836" "#3c3836" ""];
|
||||
BUTTON_GRADIENT_END = ["Button End" "#3c3836" "#3c3836" ""];
|
||||
BUTTON_HOVER = ["Button Hover" "#665c54" "#665c54" ""];
|
||||
|
||||
# ===== Accent & Links =====
|
||||
ACCENT = [ "Accent" "#458588" "#458588" "" ];
|
||||
LINK = [ "Link" "#83a598" "#83a598" "" ];
|
||||
LINK_HOVER = [ "Link Hover" "#8ec07c" "#8ec07c" "" ];
|
||||
# ===== Accent & Links =====
|
||||
ACCENT = ["Accent" "#458588" "#458588" ""];
|
||||
LINK = ["Link" "#83a598" "#83a598" ""];
|
||||
LINK_HOVER = ["Link Hover" "#8ec07c" "#8ec07c" ""];
|
||||
|
||||
# ===== Status =====
|
||||
WARNING = [ "Warning" "#fe8019" "#fe8019" "" ];
|
||||
ERROR = [ "Error" "#fb4934" "#fb4934" "" ];
|
||||
SUCCESS = [ "Success" "#8ec07c" "#8ec07c" "" ];
|
||||
# ===== Status =====
|
||||
WARNING = ["Warning" "#fe8019" "#fe8019" ""];
|
||||
ERROR = ["Error" "#fb4934" "#fb4934" ""];
|
||||
SUCCESS = ["Success" "#8ec07c" "#8ec07c" ""];
|
||||
};
|
||||
};
|
||||
# version = { major = 3; minor = 1; };
|
||||
# let nixpkgs handle the version
|
||||
};
|
||||
# version = { major = 3; minor = 1; };
|
||||
# let nixpkgs handle the version
|
||||
})
|
||||
])
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
+31
-36
@@ -1,47 +1,42 @@
|
||||
# https://discourse.nixos.org/t/what-is-the-best-option-for-power-management/63406/2
|
||||
{
|
||||
...
|
||||
}:
|
||||
|
||||
{...}:
|
||||
# we just activate tlp unconditonally
|
||||
|
||||
#let
|
||||
# cfg = config.custom;
|
||||
|
||||
#hasBattery =
|
||||
# lib.any (x: lib.strings.hasPrefix "BAT" x)
|
||||
# (builtins.attrNames (builtins.readDir "/sys/class/power_supply"));
|
||||
#in
|
||||
#in
|
||||
{
|
||||
# options.custom = {
|
||||
# battery.enable = lib.mkOption {
|
||||
# default = hasBattery;
|
||||
# description = "Enable better battery support";
|
||||
# type = lib.types.bool;
|
||||
# };
|
||||
# };
|
||||
# options.custom = {
|
||||
# battery.enable = lib.mkOption {
|
||||
# default = hasBattery;
|
||||
# description = "Enable better battery support";
|
||||
# type = lib.types.bool;
|
||||
# };
|
||||
# };
|
||||
|
||||
# config = lib.mkIf cfg.battery.enable {
|
||||
powerManagement.powertop.enable = true; # enable powertop auto tuning on startup.
|
||||
services.system76-scheduler.settings.cfsProfiles.enable = true; # Better scheduling for CPU cycles - thanks System76!!!
|
||||
services.thermald.enable = true; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
|
||||
services.power-profiles-daemon.enable = false; # Disable GNOMEs power management
|
||||
services.tlp = {
|
||||
enable = true; # Enable TLP (better than gnomes internal power manager)
|
||||
settings = {
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 1;
|
||||
CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||
CPU_HWP_DYN_BOOST_ON_BAT = 1;
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||
PLATFORM_PROFILE_ON_AC = "performance";
|
||||
PLATFORM_PROFILE_ON_BAT = "balanced";
|
||||
START_CHARGE_THRESH_BAT1 = 75;
|
||||
STOP_CHARGE_THRESH_BAT1= 85;
|
||||
};
|
||||
# config = lib.mkIf cfg.battery.enable {
|
||||
powerManagement.powertop.enable = true; # enable powertop auto tuning on startup.
|
||||
services.system76-scheduler.settings.cfsProfiles.enable = true; # Better scheduling for CPU cycles - thanks System76!!!
|
||||
services.thermald.enable = true; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
|
||||
services.power-profiles-daemon.enable = false; # Disable GNOMEs power management
|
||||
services.tlp = {
|
||||
enable = true; # Enable TLP (better than gnomes internal power manager)
|
||||
settings = {
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 1;
|
||||
CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||
CPU_HWP_DYN_BOOST_ON_BAT = 1;
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||
PLATFORM_PROFILE_ON_AC = "performance";
|
||||
PLATFORM_PROFILE_ON_BAT = "balanced";
|
||||
START_CHARGE_THRESH_BAT1 = 75;
|
||||
STOP_CHARGE_THRESH_BAT1 = 85;
|
||||
};
|
||||
# };
|
||||
};
|
||||
# };
|
||||
}
|
||||
|
||||
+77
-79
@@ -1,6 +1,4 @@
|
||||
{ ...}:
|
||||
|
||||
{
|
||||
{...}: {
|
||||
services.displayManager.ly = {
|
||||
enable = true;
|
||||
settings = {
|
||||
@@ -16,107 +14,107 @@
|
||||
# Blank main box background
|
||||
# Setting to false will make it transparent
|
||||
blank_box = false;
|
||||
|
||||
|
||||
# Border foreground color id
|
||||
border_fg = "0x00FFFFFF";
|
||||
|
||||
|
||||
# Title to show at the top of the main box
|
||||
# If set to null, none will be shown
|
||||
box_title = null;
|
||||
|
||||
|
||||
# Brightness decrease command
|
||||
brightness_down_cmd = "$PREFIX_DIRECTORY/bin/brightnessctl -q -n s 10%-";
|
||||
|
||||
|
||||
# Brightness decrease key combination, or null to disable
|
||||
brightness_down_key = "F5";
|
||||
|
||||
|
||||
# Brightness increase command
|
||||
brightness_up_cmd = "$PREFIX_DIRECTORY/bin/brightnessctl -q -n s +10%";
|
||||
|
||||
|
||||
# Brightness increase key combination, or null to disable
|
||||
brightness_up_key = "F6";
|
||||
|
||||
|
||||
# Erase password input on failure
|
||||
clear_password = true;
|
||||
|
||||
|
||||
# Format string for clock in top right corner (see strftime specification). Example: %c
|
||||
# If null, the clock won't be shown
|
||||
clock = true;
|
||||
|
||||
|
||||
# CMatrix animation foreground color id
|
||||
cmatrix_fg = "0x0000FF00";
|
||||
|
||||
|
||||
# CMatrix animation character string head color id
|
||||
cmatrix_head_col = "0x01FFFFFF";
|
||||
|
||||
|
||||
# CMatrix animation minimum codepoint. It uses a 16-bit integer
|
||||
# For Japanese characters for example, you can use 0x3000 here
|
||||
cmatrix_min_codepoint = "0x21";
|
||||
|
||||
|
||||
# CMatrix animation maximum codepoint. It uses a 16-bit integer
|
||||
# For Japanese characters for example, you can use 0x30FF here
|
||||
cmatrix_max_codepoint = "0x7B";
|
||||
|
||||
|
||||
# Color mixing animation first color id
|
||||
colormix_col1 = "0x00FF0000";
|
||||
|
||||
|
||||
# Color mixing animation second color id
|
||||
colormix_col2 = "0x000000FF";
|
||||
|
||||
|
||||
# Color mixing animation third color id
|
||||
colormix_col3 = "0x20000000";
|
||||
|
||||
|
||||
# Custom sessions directory
|
||||
# You can specify multiple directories,
|
||||
# e.g. $CONFIG_DIRECTORY/ly/custom-sessions:$PREFIX_DIRECTORY/share/custom-sessions
|
||||
custom_sessions = "$CONFIG_DIRECTORY/ly/custom-sessions";
|
||||
|
||||
|
||||
# Input box active by default on startup
|
||||
# Available inputs: info_line, session, login, password
|
||||
default_input = "password";
|
||||
|
||||
|
||||
# DOOM animation fire height (1 thru 9)
|
||||
doom_fire_height = 6;
|
||||
|
||||
|
||||
# DOOM animation fire spread (0 thru 4)
|
||||
doom_fire_spread = 2;
|
||||
|
||||
|
||||
# DOOM animation custom top color (low intensity flames)
|
||||
doom_top_color = "0x009F2707";
|
||||
|
||||
|
||||
# DOOM animation custom middle color (medium intensity flames)
|
||||
doom_middle_color = "0x00C78F17";
|
||||
|
||||
|
||||
# DOOM animation custom bottom color (high intensity flames)
|
||||
doom_bottom_color = "0x00FFFFFF";
|
||||
|
||||
|
||||
# Dur file path
|
||||
dur_file_path = "$CONFIG_DIRECTORY/ly/example.dur";
|
||||
|
||||
|
||||
# Dur file alignment
|
||||
# The dur file can be aligned with a direction and centered easily with the flags below
|
||||
# Available inputs: topleft, topcenter, topright, centerleft, center, centerright, bottomleft, bottomcenter, bottomright
|
||||
dur_offset_alignment = "center";
|
||||
|
||||
|
||||
# Dur offset x direction (value is added to the current position determined by alignment, negatives are supported)
|
||||
dur_x_offset = 0;
|
||||
|
||||
|
||||
# Dur offset y direction (value is added to the current position determined by alignment, negatives are supported)
|
||||
dur_y_offset = 0;
|
||||
|
||||
|
||||
# Set margin to the edges of the DM (useful for curved monitors)
|
||||
edge_margin = 0;
|
||||
|
||||
|
||||
# Error background color id
|
||||
error_bg = "0x00000000";
|
||||
|
||||
|
||||
# Error foreground color id
|
||||
# Default is red and bold
|
||||
error_fg = "0x01FF0000";
|
||||
|
||||
|
||||
# Foreground color id
|
||||
fg = "0x00FFFFFF";
|
||||
|
||||
|
||||
# Render true colors (if supported)
|
||||
# If false, output will be in eight-color mode
|
||||
# All eight-color mode color codes:
|
||||
@@ -134,108 +132,108 @@
|
||||
# Note: If using the dur_file animation option and the dur file's color range
|
||||
# is saved as 256 with this option disabled, the file will not be drawn.
|
||||
full_color = true;
|
||||
|
||||
|
||||
# Game of Life entropy interval (0 = disabled, >0 = add entropy every N generations)
|
||||
# 0 -> Pure Conway's Game of Life (will eventually stabilize)
|
||||
# 10 -> Add entropy every 10 generations (recommended for continuous activity)
|
||||
# 50+ -> Less frequent entropy for more natural evolution
|
||||
gameoflife_entropy_interval = 10;
|
||||
|
||||
|
||||
# Game of Life animation foreground color id
|
||||
gameoflife_fg = "0x0000FF00";
|
||||
|
||||
|
||||
# Game of Life frame delay (lower = faster animation, higher = slower)
|
||||
# 1-3 -> Very fast animation
|
||||
# 6 -> Default smooth animation speed
|
||||
# 10+ -> Slower, more contemplative speed
|
||||
gameoflife_frame_delay = 3;
|
||||
|
||||
|
||||
# Game of Life initial cell density (0.0 to 1.0)
|
||||
# 0.1 -> Sparse, minimal activity
|
||||
# 0.4 -> Balanced activity (recommended)
|
||||
# 0.7+ -> Dense, chaotic patterns
|
||||
gameoflife_initial_density = 0.666;
|
||||
|
||||
|
||||
# Command executed when pressing hibernate key (can be null)
|
||||
hibernate_cmd = null;
|
||||
|
||||
|
||||
# Specifies the key combination used for hibernate
|
||||
hibernate_key = "F4";
|
||||
|
||||
|
||||
# Remove main box borders
|
||||
hide_borders = false;
|
||||
|
||||
|
||||
# Remove power management command hints
|
||||
hide_key_hints = false;
|
||||
|
||||
|
||||
# Remove keyboard lock states from the top right corner
|
||||
hide_keyboard_locks = false;
|
||||
|
||||
|
||||
# Remove version number from the top left corner
|
||||
hide_version_string = false;
|
||||
|
||||
|
||||
# Command executed when no input is detected for a certain time
|
||||
# If null, no command will be executed
|
||||
inactivity_cmd = null;
|
||||
|
||||
|
||||
# Executes a command after a certain amount of seconds
|
||||
inactivity_delay = 0;
|
||||
|
||||
|
||||
# Initial text to show on the info line
|
||||
# If set to null, the info line defaults to the hostname
|
||||
initial_info_text = null;
|
||||
|
||||
|
||||
# Input boxes length
|
||||
input_len = 34;
|
||||
|
||||
|
||||
# Active language
|
||||
# Available languages are found in $CONFIG_DIRECTORY/ly/lang/
|
||||
lang = "en";
|
||||
|
||||
|
||||
# Command executed when logging in
|
||||
# If null, no command will be executed
|
||||
# Important: the code itself must end with `exec "$@"` in order to launch the session!
|
||||
# You can also set environment variables in there, they'll persist until logout
|
||||
login_cmd = null;
|
||||
|
||||
|
||||
# Path for login.defs file (used for listing all local users on the system on
|
||||
# Linux)
|
||||
#login_defs_path = /etc/login.defs
|
||||
|
||||
|
||||
# Command executed when logging out
|
||||
# If null, no command will be executed
|
||||
# Important: the session will already be terminated when this command is executed, so
|
||||
# no need to add `exec "$@"` at the end
|
||||
logout_cmd = null;
|
||||
|
||||
|
||||
# General log file path
|
||||
#ly_log = /var/log/ly.log
|
||||
|
||||
|
||||
# Main box horizontal margin
|
||||
margin_box_h = 2;
|
||||
|
||||
|
||||
# Main box vertical margin
|
||||
margin_box_v = 1;
|
||||
|
||||
|
||||
# Set numlock on/off at startup
|
||||
numlock = false;
|
||||
|
||||
|
||||
# Default path
|
||||
# If null, ly doesn't set a path
|
||||
#path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
|
||||
# Command executed when pressing restart_key
|
||||
#restart_cmd = "/sbin/shutdown -r now"
|
||||
|
||||
|
||||
# Specifies the key combination used for restart
|
||||
restart_key = "F2";
|
||||
|
||||
|
||||
# Save the current desktop and login as defaults, and load them on startup
|
||||
save = true;
|
||||
|
||||
|
||||
# Service name (set to ly to use the provided pam config file)
|
||||
service_name = "ly";
|
||||
|
||||
|
||||
# Session log file path
|
||||
# This will contain stdout and stderr of Wayland sessions
|
||||
# By default it's saved in the user's home directory
|
||||
@@ -244,61 +242,61 @@
|
||||
# logs from those sessions.
|
||||
# If null, no session log will be created
|
||||
session_log = null;
|
||||
|
||||
|
||||
# Setup command
|
||||
setup_cmd = "$CONFIG_DIRECTORY/ly/setup.sh";
|
||||
|
||||
|
||||
# Command executed when pressing shutdown_key
|
||||
shutdown_cmd = "/sbin/shutdown $PLATFORM_SHUTDOWN_ARG now";
|
||||
|
||||
|
||||
# Specifies the key combination used for shutdown
|
||||
shutdown_key = "F1";
|
||||
|
||||
|
||||
# Command executed when pressing sleep key (can be null)
|
||||
sleep_cmd = null;
|
||||
|
||||
|
||||
# Specifies the key combination used for sleep
|
||||
sleep_key = "F3";
|
||||
|
||||
|
||||
# Command executed when starting Ly (before the TTY is taken control of)
|
||||
# See file at path below for an example of changing the default TTY colors
|
||||
start_cmd = "$CONFIG_DIRECTORY/ly/startup.sh";
|
||||
|
||||
|
||||
# Center the session name.
|
||||
text_in_center = false;
|
||||
|
||||
|
||||
# Default vi mode
|
||||
# normal -> normal mode
|
||||
# insert -> insert mode
|
||||
vi_default_mode = "normal";
|
||||
|
||||
|
||||
# Enable vi keybindings
|
||||
vi_mode = false;
|
||||
|
||||
|
||||
# Wayland desktop environments
|
||||
# You can specify multiple directories,
|
||||
# e.g. $PREFIX_DIRECTORY/share/wayland-sessions:$PREFIX_DIRECTORY/local/share/wayland-sessions
|
||||
waylandsessions = "$PREFIX_DIRECTORY/share/wayland-sessions";
|
||||
|
||||
|
||||
# Xorg server command
|
||||
x_cmd = "$PREFIX_DIRECTORY/bin/X";
|
||||
|
||||
|
||||
# Xorg virtual terminal number
|
||||
# Mostly useful for FreeBSD where choosing the current TTY causes issues
|
||||
# If null, the current TTY will be chosen
|
||||
x_vt = null;
|
||||
|
||||
|
||||
# Xorg xauthority edition tool
|
||||
xauth_cmd = "$PREFIX_DIRECTORY/bin/xauth";
|
||||
|
||||
|
||||
# xinitrc
|
||||
# If null, the xinitrc session will be hidden
|
||||
xinitrc = "~/.xinitrc";
|
||||
|
||||
|
||||
# Xorg desktop environments
|
||||
# You can specify multiple directories,
|
||||
# e.g. $PREFIX_DIRECTORY/share/xsessions:$PREFIX_DIRECTORY/local/share/xsessions
|
||||
xsessions = "$PREFIX_DIRECTORY/share/xsessions";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
+20
-21
@@ -1,27 +1,26 @@
|
||||
{... }:
|
||||
{
|
||||
{...}: {
|
||||
# a minimal ly config as the big config (ly.nix) didnt worked
|
||||
services.displayManager.ly = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Core animation
|
||||
animation = "colormix"; # none or doom or matrix or gameoflife or a dur file
|
||||
# Ly supports 24-bit true color with styling, which means each color is a 32-bit value.
|
||||
# The format is 0xSSRRGGBB, where SS is the styling, RR is red, GG is green, and BB is blue.
|
||||
# Here are the possible styling options:
|
||||
# TB_BOLD 0x01000000
|
||||
# TB_UNDERLINE 0x02000000
|
||||
# TB_REVERSE 0x04000000
|
||||
# TB_ITALIC 0x08000000
|
||||
# TB_BLINK 0x10000000
|
||||
# TB_HI_BLACK 0x20000000
|
||||
# TB_BRIGHT 0x40000000
|
||||
# TB_DIM 0x80000000
|
||||
# Programmatically, you'd apply them using the bitwise OR operator (|), but because Ly's
|
||||
# configuration doesn't support using it, you have to manually compute the color value.
|
||||
# Note that, if you want to use the default color value of the terminal, you can use the
|
||||
# special value 0x00000000. This means that, if you want to use black, you *must* use
|
||||
# the styling option TB_HI_BLACK (the RGB values are ignored when using this option).
|
||||
# Ly supports 24-bit true color with styling, which means each color is a 32-bit value.
|
||||
# The format is 0xSSRRGGBB, where SS is the styling, RR is red, GG is green, and BB is blue.
|
||||
# Here are the possible styling options:
|
||||
# TB_BOLD 0x01000000
|
||||
# TB_UNDERLINE 0x02000000
|
||||
# TB_REVERSE 0x04000000
|
||||
# TB_ITALIC 0x08000000
|
||||
# TB_BLINK 0x10000000
|
||||
# TB_HI_BLACK 0x20000000
|
||||
# TB_BRIGHT 0x40000000
|
||||
# TB_DIM 0x80000000
|
||||
# Programmatically, you'd apply them using the bitwise OR operator (|), but because Ly's
|
||||
# configuration doesn't support using it, you have to manually compute the color value.
|
||||
# Note that, if you want to use the default color value of the terminal, you can use the
|
||||
# special value 0x00000000. This means that, if you want to use black, you *must* use
|
||||
# the styling option TB_HI_BLACK (the RGB values are ignored when using this option).
|
||||
# Basic TUI settings
|
||||
clear_password = true;
|
||||
default_input = "password";
|
||||
@@ -40,7 +39,7 @@
|
||||
bigclock = "en";
|
||||
clock = "%H:%M";
|
||||
|
||||
colormix_col1 = "0x08E85D04";
|
||||
colormix_col1 = "0x08E85D04";
|
||||
colormix_col2 = "0x08FABD2F";
|
||||
colormix_col3 = "0x08FE8019";
|
||||
|
||||
@@ -72,10 +71,10 @@
|
||||
restart_key = "F2";
|
||||
sleep_key = "F3";
|
||||
hibernate_key = "F4";
|
||||
|
||||
|
||||
# top bar
|
||||
session_log = null;
|
||||
initial_info_text = null; #
|
||||
initial_info_text = null; #
|
||||
# Custom sessions
|
||||
#custom_sessions = "$CONFIG_DIRECTORY/ly/custom-sessions";
|
||||
#waylandsessions = "$PREFIX_DIRECTORY/share/wayland-sessions";
|
||||
|
||||
+127
-125
@@ -1,136 +1,138 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# udev are setup for controlling the framework 16 laptop's keyboard
|
||||
services.udev.extraRules = ''
|
||||
## https://github.com/qmk/qmk_firmware/blob/master/util/udev/50-qmk.extraRules
|
||||
## Atmel DFU
|
||||
#### ATmega16U2
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fef", TAG+="uaccess"
|
||||
#### ATmega32U2
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", TAG+="uaccess"
|
||||
#### ATmega16U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff3", TAG+="uaccess"
|
||||
#### ATmega32U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", TAG+="uaccess"
|
||||
#### AT90USB64
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff9", TAG+="uaccess"
|
||||
#### AT90USB162
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffa", TAG+="uaccess"
|
||||
#### AT90USB128
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", TAG+="uaccess"
|
||||
#
|
||||
## Input Club
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", ATTRS{idProduct}=="b007", TAG+="uaccess"
|
||||
#
|
||||
## STM32duino
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", TAG+="uaccess"
|
||||
## STM32 DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
||||
#
|
||||
## BootloadHID
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", TAG+="uaccess"
|
||||
#
|
||||
## USBAspLoader
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", TAG+="uaccess"
|
||||
#
|
||||
## USBtinyISP
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1782", ATTRS{idProduct}=="0c9f", TAG+="uaccess"
|
||||
#
|
||||
## ModemManager should ignore the following devices
|
||||
## Atmel SAM-BA (Massdrop)
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#
|
||||
## Caterina (Pro Micro)
|
||||
### pid.codes shared PID
|
||||
#### Keyboardio Atreus 2 Bootloader
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2302", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Spark Fun Electronics
|
||||
#### Pro Micro 3V3/8MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### Pro Micro 5V/16MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9205", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### LilyPad 3V3/8MHz (and some Pro Micro clones)
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9207", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Pololu Electronics
|
||||
#### A-Star 32U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="0101", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Arduino SA
|
||||
#### Leonardo
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### Micro
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Adafruit Industries LLC
|
||||
#### Feather 32U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000c", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### ItsyBitsy 32U4 3V3/8MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000d", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### ItsyBitsy 32U4 5V/16MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000e", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### dog hunter AG
|
||||
#### Leonardo
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### Micro
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#
|
||||
## hid_listen
|
||||
#KERNEL=="hidraw*", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
|
||||
#
|
||||
## hid bootloaders
|
||||
### QMK HID
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2067", TAG+="uaccess"
|
||||
### PJRC's HalfKay
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0478", TAG+="uaccess"
|
||||
#
|
||||
## APM32 DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="314b", ATTRS{idProduct}=="0106", TAG+="uaccess"
|
||||
#
|
||||
## GD32V DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", TAG+="uaccess"
|
||||
#
|
||||
## WB32 DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="342d", ATTRS{idProduct}=="dfa0", TAG+="uaccess"
|
||||
#
|
||||
## AT32 DFU
|
||||
# SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# udev are setup for controlling the framework 16 laptop's keyboard
|
||||
services.udev.extraRules = ''
|
||||
## https://github.com/qmk/qmk_firmware/blob/master/util/udev/50-qmk.extraRules
|
||||
## Atmel DFU
|
||||
#### ATmega16U2
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fef", TAG+="uaccess"
|
||||
#### ATmega32U2
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", TAG+="uaccess"
|
||||
#### ATmega16U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff3", TAG+="uaccess"
|
||||
#### ATmega32U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", TAG+="uaccess"
|
||||
#### AT90USB64
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff9", TAG+="uaccess"
|
||||
#### AT90USB162
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffa", TAG+="uaccess"
|
||||
#### AT90USB128
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", TAG+="uaccess"
|
||||
#
|
||||
## Input Club
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", ATTRS{idProduct}=="b007", TAG+="uaccess"
|
||||
#
|
||||
## STM32duino
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", TAG+="uaccess"
|
||||
## STM32 DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
||||
#
|
||||
## BootloadHID
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", TAG+="uaccess"
|
||||
#
|
||||
## USBAspLoader
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", TAG+="uaccess"
|
||||
#
|
||||
## USBtinyISP
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1782", ATTRS{idProduct}=="0c9f", TAG+="uaccess"
|
||||
#
|
||||
## ModemManager should ignore the following devices
|
||||
## Atmel SAM-BA (Massdrop)
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#
|
||||
## Caterina (Pro Micro)
|
||||
### pid.codes shared PID
|
||||
#### Keyboardio Atreus 2 Bootloader
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2302", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Spark Fun Electronics
|
||||
#### Pro Micro 3V3/8MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### Pro Micro 5V/16MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9205", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### LilyPad 3V3/8MHz (and some Pro Micro clones)
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9207", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Pololu Electronics
|
||||
#### A-Star 32U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1ffb", ATTRS{idProduct}=="0101", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Arduino SA
|
||||
#### Leonardo
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### Micro
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### Adafruit Industries LLC
|
||||
#### Feather 32U4
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000c", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### ItsyBitsy 32U4 3V3/8MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000d", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### ItsyBitsy 32U4 5V/16MHz
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="000e", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
### dog hunter AG
|
||||
#### Leonardo
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0036", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#### Micro
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="2a03", ATTRS{idProduct}=="0037", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||
#
|
||||
## hid_listen
|
||||
#KERNEL=="hidraw*", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
|
||||
#
|
||||
## hid bootloaders
|
||||
### QMK HID
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2067", TAG+="uaccess"
|
||||
### PJRC's HalfKay
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0478", TAG+="uaccess"
|
||||
#
|
||||
## APM32 DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="314b", ATTRS{idProduct}=="0106", TAG+="uaccess"
|
||||
#
|
||||
## GD32V DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", TAG+="uaccess"
|
||||
#
|
||||
## WB32 DFU
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="342d", ATTRS{idProduct}=="dfa0", TAG+="uaccess"
|
||||
#
|
||||
## AT32 DFU
|
||||
# SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", TAG+="uaccess"
|
||||
|
||||
|
||||
# and # https://community.frame.work/t/guide-updated-after-firmware-updates-udev-rules-for-https-keyboard-frame-work/78708
|
||||
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0010", TAG+="uaccess"
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0013", TAG+="uaccess"
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0014", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0018", TAG+="uaccess"
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0019", TAG+="uaccess"
|
||||
# and # https://community.frame.work/t/guide-updated-after-firmware-updates-udev-rules-for-https-keyboard-frame-work/78708
|
||||
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0010", TAG+="uaccess"
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0013", TAG+="uaccess"
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0014", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0018", TAG+="uaccess"
|
||||
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0019", TAG+="uaccess"
|
||||
|
||||
|
||||
|
||||
|
||||
# USB [VendorID]:[ProductID] “[Manufacturer][Product name]”
|
||||
# 32ac:0012 “Framework Laptop 16 Keyboard Module - ANSI”
|
||||
# 32ac:0013 “Framework Laptop 16 RGB Macropad”
|
||||
# 32ac:0014 “Framework Laptop 16 Numpad Module”
|
||||
# 32ac:0018 “Framework Laptop 16 Keyboard Module - ISO”
|
||||
# 32ac:0019 “Framework Laptop 16 Keyboard Module - JIS”
|
||||
# USB [VendorID]:[ProductID] “[Manufacturer][Product name]”
|
||||
# 32ac:0012 “Framework Laptop 16 Keyboard Module - ANSI”
|
||||
# 32ac:0013 “Framework Laptop 16 RGB Macropad”
|
||||
# 32ac:0014 “Framework Laptop 16 Numpad Module”
|
||||
# 32ac:0018 “Framework Laptop 16 Keyboard Module - ISO”
|
||||
# 32ac:0019 “Framework Laptop 16 Keyboard Module - JIS”
|
||||
|
||||
|
||||
##https://github.com/ublue-os/config/blob/main/files/etc/udev/rules.d/50-framework16.rules
|
||||
## Audio Expansion Card
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0010", ATTR{power/autosuspend}="10", ATTR{power/control}="auto", GOTO="rules_end"
|
||||
#
|
||||
## Framework Laptop 16 Keyboard Module - ANSI
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0012", ATTR{power/autosuspend}="-1", ATTR{power/control}="on", ATTR{power/wakeup}="disabled", GOTO="rules_end"
|
||||
#
|
||||
## Framework Laptop 16 RGB Macropad
|
||||
#
|
||||
## Framework Laptop 16 Numpad Module
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0014", ATTR{power/autosuspend}="-1", ATTR{power/control}="on", ATTR{power/wakeup}="disabled", GOTO="rules_end"
|
||||
#
|
||||
## Framework Laptop 16 Keyboard Module
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0018", ATTR{power/autosuspend}="-1", ATTR{power/control}="on", ATTR{power/wakeup}="disabled", GOTO="rules_end"
|
||||
#
|
||||
#LABEL="rules_end"
|
||||
##https://github.com/ublue-os/config/blob/main/files/etc/udev/rules.d/50-framework16.rules
|
||||
## Audio Expansion Card
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0010", ATTR{power/autosuspend}="10", ATTR{power/control}="auto", GOTO="rules_end"
|
||||
#
|
||||
## Framework Laptop 16 Keyboard Module - ANSI
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0012", ATTR{power/autosuspend}="-1", ATTR{power/control}="on", ATTR{power/wakeup}="disabled", GOTO="rules_end"
|
||||
#
|
||||
## Framework Laptop 16 RGB Macropad
|
||||
#
|
||||
## Framework Laptop 16 Numpad Module
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0014", ATTR{power/autosuspend}="-1", ATTR{power/control}="on", ATTR{power/wakeup}="disabled", GOTO="rules_end"
|
||||
#
|
||||
## Framework Laptop 16 Keyboard Module
|
||||
#ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32ac", ATTR{idProduct}=="0018", ATTR{power/autosuspend}="-1", ATTR{power/control}="on", ATTR{power/wakeup}="disabled", GOTO="rules_end"
|
||||
#
|
||||
#LABEL="rules_end"
|
||||
|
||||
'';
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# udev with only the necessary rules. See udev.nix to get all the rules
|
||||
services.udev.extraRules = ''
|
||||
# adapted from here https://wiki.nixos.org/wiki/Keychron_M6
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="32ac", MODE="0660", GROUP="users", TAG+="uaccess"
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# udev with only the necessary rules. See udev.nix to get all the rules
|
||||
services.udev.extraRules = ''
|
||||
# adapted from here https://wiki.nixos.org/wiki/Keychron_M6
|
||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="32ac", MODE="0660", GROUP="users", TAG+="uaccess"
|
||||
|
||||
|
||||
# taken from here
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0013", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0018", TAG+="uaccess"
|
||||
'';
|
||||
# taken from here
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0013", TAG+="uaccess"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0018", TAG+="uaccess"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user