Skip to content

Commit

Permalink
fix: add tuxedo drivers from PR NixOS/nixpkgs#293017
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Sep 8, 2024
1 parent b1eaf32 commit f3901ed
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ script="$HOME/.config/sway/scripts/assign-workspaces-to-outputs.sh"
if [ -f "$script" ]; then
# shellcheck disable=SC2015
out=$("$script" 2>&1) &&
# echo -e "OnChanged:: Workspace moved\n$out" >>~/.way-displays.log ||
# echo -e "OnChanged:: Workspace not moved\n$out" >>~/.way-displays.log
notify-send "Display changed." "$(echo -e "Workspace moved:\n$out")" ||
notify-send -u critical "Display changed." "$(echo -e "Workspace not moved:\n$out")"
fi
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion home/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

### Color Shifting ==========================================================
services.gammastep = {
enable = true;
enable = false;
provider = "manual";

longitude = 8.55;
Expand Down
6 changes: 6 additions & 0 deletions nixos/hosts/tuxedo-pulse-14/boot.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
config,
pkgs,
inputs,
...
}: {
boot = {
Expand All @@ -11,6 +12,11 @@
# Documentation: https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
kernel.sysctl."kernel.sysrq" = 1; # NixOS default: 16 (only the sync command)

kernelPackages = pkgs.linuxPackages.extend (final: prev: {
# OR `callPackage` it to download less packages
tuxedo-drivers = prev.callPackage (inputs.tuxedo + "/pkgs/os-specific/linux/tuxedo-keyboard/default.nix") {};
});

# Bootloader ================================================================
loader = {
grub = {
Expand Down
2 changes: 2 additions & 0 deletions nixos/hosts/tuxedo-pulse-14/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ in {
# Testing PR 293017
disabledModules = [
"hardware/tuxedo-keyboard.nix"
"services/hardware/tuxedo-rs.nix"
];

imports = [
# Testing PR 293017
"${inputs.tuxedo}/nixos/modules/hardware/tuxedo-drivers.nix"
"${inputs.tuxedo}/nixos/modules/services/hardware/tuxedo-rs.nix"

# If you want to use modules your own flake exports (from modules/nixos):
# outputs.nixosModules.example
Expand Down

0 comments on commit f3901ed

Please sign in to comment.