Nix fmt rfc style (more or less)

This commit is contained in:
Filippo Berto 2024-08-13 12:22:23 +02:00
parent e7496c447a
commit 515f098644
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
146 changed files with 2607 additions and 906 deletions

View file

@ -1,4 +1,9 @@
{ pkgs, lib, nixosConfig, ... }: {
{ pkgs
, lib
, nixosConfig
, ...
}:
{
systemd.user.services."bluetooth-keyboard" = {
Unit = {
Description = "Disable the laptop keyboard when the bluetooth keyboard is connected";
@ -9,7 +14,14 @@
Service = {
Type = "simple";
ExecStart = pkgs.writeShellScript "bluetooth-keyboard.sh" ''
PATH=$PATH:${lib.makeBinPath [pkgs.coreutils pkgs.gnugrep pkgs.libnotify nixosConfig.programs.hyprland.package]}
PATH=$PATH:${
lib.makeBinPath [
pkgs.coreutils
pkgs.gnugrep
pkgs.libnotify
nixosConfig.programs.hyprland.package
]
}
BLUETOOTH_DEVICE="keychron-k1-max-keyboard"
LAPTOP_DEVICE="at-translated-set-2-keyboard"
STATUS_FILE="$XDG_RUNTIME_DIR/bluetooth_keyboard.status"
@ -49,4 +61,3 @@
};
};
}