This commit is contained in:
Hadi
2024-06-25 21:57:24 +02:00
parent 6f6c8bebf7
commit c618feced4
11 changed files with 126 additions and 57 deletions

View File

@@ -5,6 +5,7 @@
../modules/nvidia.nix
../modules/prime.nix
../modules/tuigreet.nix
../modules/usb.nix
./variables.nix
];

View File

@@ -2,21 +2,21 @@
{
# USB Automounting
services.gvfs.enable = true;
# services.udisks2.enable = true;
# services.gvfs.enable = true;
services.udisks2.enable = true;
# services.devmon.enable = true;
# Enable USB Guard
services.usbguard = {
enable = true;
dbus.enable = true;
implicitPolicyTarget = "block";
# FIXME: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard`
rules = ''
allow id {id} # device 1
allow id {id} # device 2
'';
};
# services.usbguard = {
# enable = true;
# dbus.enable = true;
# implicitPolicyTarget = "block";
# # FIXME: set yours pref USB devices (change {id} to your trusted USB device), use `lsusb` command (from usbutils package) to get list of all connected USB devices including integrated devices like camera, bluetooth, wifi, etc. with their IDs or just disable `usbguard`
# rules = ''
# allow id {id} # device 1
# allow id {id} # device 2
# '';
# };
# Enable USB-specific packages
environment.systemPackages = with pkgs; [ usbutils ];