Update
This commit is contained in:
parent
063534079d
commit
10f3754b0a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
||||||
|
|
||||||
- [ ] Nixy script v2 (with flake)
|
- [ ] Nixy script v2 (with nixosConfiguration's name variable)
|
||||||
- [ ] Installation script
|
- [ ] Installation script
|
||||||
- [ ] Themes
|
- [ ] Themes
|
||||||
- [ ] MacOS theme
|
- [ ] MacOS theme
|
||||||
@ -19,3 +19,4 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
|||||||
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
|
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
|
||||||
- [ ] Exclude file pattern (nodes modules, ...)
|
- [ ] Exclude file pattern (nodes modules, ...)
|
||||||
- [ ] Nextcloud exclude file pattern (nodes modules, ...)
|
- [ ] Nextcloud exclude file pattern (nodes modules, ...)
|
||||||
|
- [ ] Usb security for laptop & server, variable in variables.nix, disable for guest
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
nodejs
|
nodejs
|
||||||
python3
|
python3
|
||||||
jq
|
jq
|
||||||
|
git-ignore
|
||||||
|
|
||||||
# Utils
|
# Utils
|
||||||
fd
|
fd
|
||||||
@ -64,6 +65,7 @@
|
|||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
optipng
|
optipng
|
||||||
pfetch
|
pfetch
|
||||||
|
usbutils
|
||||||
|
|
||||||
# Just cool
|
# Just cool
|
||||||
peaclock
|
peaclock
|
||||||
|
@ -46,6 +46,7 @@ in {
|
|||||||
nvidia-vaapi-driver
|
nvidia-vaapi-driver
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
|
mesa
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
hardware.nvidia.prime = {
|
hardware.nvidia.prime = {
|
||||||
# offload = {
|
offload = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# enableOffloadCmd = true;
|
enableOffloadCmd = true;
|
||||||
# };
|
};
|
||||||
|
|
||||||
sync.enable = true;
|
# sync.enable = true;
|
||||||
|
|
||||||
amdgpuBusId = "PCI:5:0:0";
|
amdgpuBusId = "PCI:5:0:0";
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
23
hosts/modules/usb.nix
Normal file
23
hosts/modules/usb.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# USB Automounting
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable USB-specific packages
|
||||||
|
environment.systemPackages = with pkgs; [ usbutils ];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user