Nix fmt rfc style (more or less)
This commit is contained in:
parent
e7496c447a
commit
515f098644
146 changed files with 2607 additions and 906 deletions
|
|
@ -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 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue