Reformat all Nix files
This commit is contained in:
parent
9e0c1102a9
commit
355b63cf73
81 changed files with 2293 additions and 1153 deletions
|
@ -1,10 +1,16 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
desk_mqtt = pkgs.writers.writePython3 "desk_mqtt"
|
||||
{
|
||||
libraries = with pkgs.python3Packages; [ pyusb ha-mqtt-discoverable ];
|
||||
}
|
||||
(builtins.readFile ./desk_mqtt.py);
|
||||
desk_mqtt = pkgs.writers.writePython3 "desk_mqtt" {
|
||||
libraries = with pkgs.python3Packages; [
|
||||
pyusb
|
||||
ha-mqtt-discoverable
|
||||
];
|
||||
} (builtins.readFile ./desk_mqtt.py);
|
||||
usb2lin06_udev = pkgs.writeTextFile {
|
||||
name = "usb2lin06-udev-rules";
|
||||
text = ''
|
||||
|
@ -44,7 +50,11 @@ in
|
|||
RestrictRealtime = true;
|
||||
RestrictSUIDSGID = true;
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = [ "@system-service" "~@privileged" "~@resouces" ];
|
||||
SystemCallFilter = [
|
||||
"@system-service"
|
||||
"~@privileged"
|
||||
"~@resouces"
|
||||
];
|
||||
UMask = "0077";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue